go ahead... be a heretic | |
PerlMonks |
Re^3: A regex question.by Athanasius (Archbishop) |
on Aug 01, 2015 at 03:23 UTC ( [id://1137091]=note: print w/replies, xml ) | Need Help?? |
Hello FeistyLemur, and welcome to the Monastery! See the section “Global matching” in perlretut#Using-regular-expressions-in-Perl, and in particular note the following (emphasis added.): In scalar context, successive invocations against a string will have //g jump from match to match, keeping track of position in the string as it goes along.... Hope that helps,
In Section
Seekers of Perl Wisdom
|
|