good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi monks,
I only wanna to match a string that could not contain a sub-string.Such as
My ideal result is to match string that : 1)start with "a" 2)end with "b" 3)don't include "ab" between them. That is to say, "a000000000b" : matched "a0a0000b00b" : matched but "a0000ab000b" : unmatchedI use negative look-ahead assertion (?!ab) ,but it can't work.Can somebody help me? Thanks Pysome In reply to A Regex simple Question by pysome
|
|