can I filter lines with a list of alternative OR strings?

Dick Kriesel dick.kriesel at mail.com
Sun Mar 6 18:12:59 EST 2022


> On Mar 3, 2022, at 2:30 AM, David V Glasgow via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> I can filter text using a single term plus a numerical range s eg:
> *re 1[0-5]*
> matching a text stem “re “ followed by any one of 10, 11, 12, 13, 14 or 15 
> 
> But is there a form where the alternatives are also text?  eg something like:
> 
> *big [“dog”, “cat”, “fish”]*

Hi, David.

regex supports alternation, so if you put "big dog|big fish" into tTarget then you can
<code>
filter pText with regex tTarget
</code>

Does that work for you?

— Dick


More information about the use-livecode mailing list