Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Regex: finding all possible substrings

by sauoq (Abbot)
on May 31, 2012 at 23:03 UTC ( #973634=note: print w/ replies, xml ) Need Help??


in reply to Regex: finding all possible substrings

A regular expression probably isn't the best way to do what you want... certainly not just one, at any rate.

You are probably better iterating through the string you are searching, grabbing substrings the length of the strings you are searching for, and looking them up in a hash table.

Or something similar.

-sauoq
"My two cents aren't worth a dime.";


Comment on Re: Regex: finding all possible substrings

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://973634]
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-09-22 08:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (184 votes), past polls