Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: printing LAST_MATCH_START/@- LAST_MATCH_END/@+ array where regex match begin/end

by tybalt89 (Monsignor)
on Dec 29, 2021 at 22:07 UTC ( [id://11140024]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     'abcdef' =~ /b(.)(.)./ and print  "end of entire match ", $+[0], " en
    +d of first group ",$+[1], " end of second group ", $+[2], "\n";
    
  2. or download this
    end of entire match 5 end of first group 3 end of second group 4
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2024-04-25 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found