Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: reset named capture buffer within regex

by LanX (Chancellor)
on Nov 22, 2012 at 18:45 UTC ( #1005171=note: print w/replies, xml ) Need Help??


in reply to reset named capture buffer within regex

> WITHOUT consuming any character of my match target.

I don't fully understand what you are doing, just a hint:

The position will not be altered if you try an "impossible" match within a look-ahead or look-behind.

So you maybe wanna try something like (?=(?<name> ... ))?

HTH!

Cheers Rolf

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005171]
help
Chatterbox?
[Eily]: LanX that sounds fishy to be honest
[marto]: puntastic
[choroba]: o'nest

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2017-06-29 12:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (662 votes). Check out past polls.