Perl: the Markov chain saw | |
PerlMonks |
Re: perl regexby GrandFather (Saint) |
on Nov 13, 2016 at 04:23 UTC ( [id://1175802]=note: print w/replies, xml ) | Need Help?? |
You need to read the regex documentation. perlretut is a good place to start. Your immediate problem is using [...] instead of (...) for capturing. The square bracket version matches any one of the characters in the set of characters given.
Premature optimization is the root of all job security
In Section
Seekers of Perl Wisdom
|
|