Hi
Is there a regular expression equivalent to an "AND" search?
---------
Ex :
This is my string in a text file.
Another string in a text file.
---------
I would like to do a search. Lets say I know 'string' and 'this' are keywords in the line, but I do not know the particular order. The only way I found of doing this is :
this.*string | string.*this
Since regular expressions has an OR(|) metacharacter, I was wondering whether it has an AND metacharacter as well, so that I could do :
this AND string
Also, is there a regular expression which could exclude certain keywords from a search?
say I want to exclude 'this', returning a match for the
Another string in a text file.
line.
I'm using a POSIX standard regex engine (Textpad) by the way.
Start Free Trial