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

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2017-09-20 13:44 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (237 votes). Check out past polls.