Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 rifling through the Monastery: (14)
As of 2016-07-01 15:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (7 votes). Check out past polls.