Note that if "aabbaab" =~ /aa|bb/g is wrong. Red flags should be raised when you see /g in scalar context outside a loop.
Not necessarily! It makes sense when parsing with nested ifs! Friedl's book has some nifty examples...
Cheers Rolf
In reply to Re^6: Regex for matching n-fold repititions of arbitrary characters
by LanX
in thread Regex for matching n-fold repititions of arbitrary characters
by pat_mc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |