Perl: the Markov chain saw | |
PerlMonks |
Re^2: Regex Questionby Ratazong (Monsignor) |
on Nov 26, 2012 at 08:30 UTC ( [id://1005589]=note: print w/replies, xml ) | Need Help?? |
Your index won't work in case there is an a before the third position, e.g. in the string
aba. If you (really) want to use index, use the 3-argument-form instead:
HTH, Rata
In Section
Seekers of Perl Wisdom
|
|