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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://973634]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-19 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found