in reply to Re: How do I match a expression start with $a and not contain $b after $a
in thread How do I match a expression start with $a and not contain $b after $a
Also you should be using \Q and \E escapes.
(The mistake of using $a and $b for normal use was the fault of the questioner, and not you.)/\Q$a\E(?!.*\Q$b\E)/s
|
|---|