Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Finding match offsets of named captures in 5.10 regex

by Anonymous Monk
on Mar 03, 2010 at 18:21 UTC ( #826486=note: print w/ replies, xml ) Need Help??


in reply to Finding match offsets of named captures in 5.10 regex

Obviously not a universal solution, but may be insertion of a (?{ code }) block could be helpful:

$_ = 'I am sample'; while (m/(?<be>am)(?{say pos})/ig) { say $+{be}; }


Comment on Re: Finding match offsets of named captures in 5.10 regex
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2014-08-28 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (275 votes), past polls