Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Using variables in regex search

by lancer (Beadle)
on Aug 14, 2011 at 15:08 UTC ( #920229=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Using variables in regex search
in thread Using variables in regex search

I would like to find the positions of all the strings in the source text. The strings mark special positions in the source that need to be processed.

Perhaps that is the first case in your example, where finding the strings is enough.

I haven't realized index can be used like that, to find multiple matches. Or at least I imagined it would need more code than that. I'm going to use that solution now, instead of a regex.

Thank you for all the help!


Comment on Re^4: Using variables in regex search

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2014-07-31 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (248 votes), past polls