[Tutor] regex: not start with FOO

Bernard Rankin berankin99 at yahoo.com
Mon Feb 2 23:46:18 CET 2009


Hello,


I'd like to match any line that does not start with FOO.  (Using just a reg-ex rule)

1) What is the effective difference between:

(?!^FOO).*

^(?!FOO).*

2) Is there a better way to do this?


Thanks,
:)



      



More information about the Tutor mailing list