Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: Modifying the match position after each match

by pat_mc (Pilgrim)
on Mar 24, 2010 at 08:43 UTC ( #830484=note: print w/replies, xml ) Need Help??

in reply to Re: Modifying the match position after each match
in thread Modifying the match position after each match

No, sorry ... this won't work either. However, you could not know because my example indeed would permit the simplification you suggest. The regex cannot be simplified to (_)[^']) since a) single quotes can also occur inside a string and b) I only know that the end of the string has been reached when the next underscore is reached. Another input string might be my $string = "_na'da_komo_el_so'l_"

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2016-10-29 00:15 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (387 votes). Check out past polls.