Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: perl indication of end of string already matchedby rsFalse (Chaplain) |
on Jun 16, 2020 at 11:38 UTC ( [id://11118131]=note: print w/replies, xml ) | Need Help?? |
I believe you can envelope a piece of regex of interest inside parentheses, e.g. "m/.|($ )/gcx", and ask if $1 is defined. Also I believe this can help: m/.|$ (?{ $matched = 1; })/gcx
In Section
Seekers of Perl Wisdom
|
|