Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by tybalt89 (Prior)
on Dec 29, 2021 at 22:07 UTC ( #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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (1)
As of 2022-07-06 00:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?