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?
In reply to Re^2: Match zero times in regex
by ricDeez
in thread Match zero times in regex
by SomeNetworkGuy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |