Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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 cooling their heels in the Monastery: (3)
As of 2017-11-18 05:14 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (277 votes). Check out past polls.