Perl-Sensitive Sunglasses | |
PerlMonks |
Re: reg-exp problemby RMGir (Prior) |
on Sep 09, 2008 at 11:34 UTC ( [id://710049]=note: print w/replies, xml ) | Need Help?? |
As others have pointed out, perlre or perlretut are recommended reading, because this is a very important and basic construct in regular expressions.
In a regex, [] surround a "character class", meaning that it matches any of the characters inside the square brackets. Since split divides a string based on its delimiter regex, in this case, your input string is being split on any of the { } , * characters.
Mike
In Section
Seekers of Perl Wisdom
|
|