Finds all occurrences of a string in a list or a text line by line (like a ".TXT" file). Search can be case sensitive or not.
INPUT variables:
• SourceText: string containing the original text to browse
• StringToSearch: string containing the piece of text or characters to be searched for (can be any combination of any kind of character or emoji)
• CaseSensitive: boolean indicator to make search case sensitive. Default: False=case INsensitive
• RegexExcl: optional string to skip line headers (i.e. this pattern at the beginning of each line won't be included in the search process). This string must follow Regex rules.
OUTPUT variable:
• FoundText: string filled with all lines containing the searched string. Empty if no match found.
The macro "Tst
" is provided to illustrate how "FindText" Action Block works to find any character or string in a text. As an example, the original text here is a list of local TV channels.
Enjoy!
INPUT variables:
• SourceText: string containing the original text to browse
• StringToSearch: string containing the piece of text or characters to be searched for (can be any combination of any kind of character or emoji)
• CaseSensitive: boolean indicator to make search case sensitive. Default: False=case INsensitive
• RegexExcl: optional string to skip line headers (i.e. this pattern at the beginning of each line won't be included in the search process). This string must follow Regex rules.
OUTPUT variable:
• FoundText: string filled with all lines containing the searched string. Empty if no match found.
The macro "Tst
![Magnifying glass tilted left :mag: 🔍](https://cdn.jsdelivr.net/joypixels/assets/6.6/png/unicode/64/1f50d.png)
Enjoy!