the ? keeps it from being too greedy
I'm curious, what is the purpose of including this in a simple match? Seems to me that it would only make sense if it was a capturing match or a search and replace. Not that there's anything wrong with it, it just seems a bit pointless.
In reply to Re^2: Perl Regexp help w/ grep
by revdiablo
in thread Perl Regexp help w/ grep
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |