Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Problem in "index" function in recognizing repeating substrings

by Tanalis (Curate)
on Sep 02, 2005 at 09:35 UTC ( #488587=note: print w/replies, xml ) Need Help??

in reply to Problem in "index" function in recognizing repeating substrings

index accepts a position to start from as a third argument. If you track $id to figure out where in the string you are, you should be able to avoid matching the first instance repeatedly.

See the docs for more information.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2016-10-22 05:13 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (292 votes). Check out past polls.