--- In [email protected], "Sheri" <sheri...@...> wrote:
>
> Sorry, should be:
> 
> p = ?"(?im)^.*?(?:trigger2.*?trigger4.*|trigger4.*?trigger2.*)\R"
> 

Just a tiny bit better:

p = ?"(?im)^.*?(?:trigger2.*?trigger4|trigger4.*?trigger2).*\R"

Basically says match from the beginning of a line, any characters up and 
including "trigger2" plus any characters up to and including "trigger4" plus 
any characters up to the end of the line plus a line break. "Or" match it with 
the same criteria but with the two words in reverse order. Either way, will 
match an entire line plus a line break, and by replacing those matches with 
nothing, they are effectively removed.

Regards,
Sheri



Reply via email to