As ikegami already pointed out, yes, anchors and boundary conditions are often the most important aspect to regex's. Second to understanding greediness, I suppose.
Can't think of any unintentional funny parsings on my end. However, as a personal pet peeve, I always try to use File::Basename when pulling off file extensions and such. Don't always, but feel it's a good way to self document code.
- Miller
In reply to Re: Writing regexes, think ahead just a bit.
by wind
in thread Writing regexes, think ahead just a bit.
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |