Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: perl indication of end of string already matched

by rsFalse (Chaplain)
on Jun 16, 2020 at 11:38 UTC ( [id://11118131]=note: print w/replies, xml ) Need Help??


in reply to perl indication of end of string already matched

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11118131]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-03-28 17:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found