|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Find repeating text
Here's what I'm trying to do:
Take a given block of text, and find the longest repeating strings within it, ranked by most common. Example text: blah bleep blorp blugh blah blugh blah bleep blorp I want: blah bleep blorp x 2 bleep blorp x 2 bleep x 2 blah x 3 etc. I am currenty using a few ugly loops, and a lot of preg_match. I would really appreciate it if anyone could point me to a solid code example (I'm sure this has been done before). Your pal, Zap |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Programming Theory > Find repeating text |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|