Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Problems searching and highlighting proximity words in a text

by Krambambuli (Deacon)
on May 24, 2010 at 09:20 UTC ( #841348=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
        if ($content =~ /$par2.*$par1/i) {
    ...
            }
        }
    
  2. or download this
        if ($content =~ /\b($par1)(\W+(\w+\W+){0,$distance})($par2)\b/i) {
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2016-06-25 11:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (325 votes). Check out past polls.