in reply to Re: Match zero times in regex
in thread Match zero times in regex
The negative look-behind is what the OP was trying to emulate with the {0}. This is definitely the way to go, using negative look-behind and negative look-aheads in the regex! This is a great solution, IMHO...
Just a query: in your regexes, why did you use the m modifier?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Match zero times in regex
by AnomalousMonk (Archbishop) on Dec 13, 2011 at 04:47 UTC | |
by ricDeez (Scribe) on Dec 13, 2011 at 07:38 UTC |