Re: [PHP] regular expression and exact word search...

2002-11-07 Thread rija
How about this one, $word_search = 'blablabla' ; echo eregi_replace("($word_search)","\\1",$html) ; // - Original Message - From: "BAROILLER Pierre-Emmanuel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 08, 2002

Re: [PHP] regular expression and exact word search...

2002-11-07 Thread .: B i g D o g :.
This should help u out... http://www.php.net/manual/en/pcre.pattern.modifiers.php On Thu, 2002-11-07 at 18:29, BAROILLER Pierre-Emmanuel wrote: > I work with > preg_match_all to get all matching words > and preg_replace_callback to replace found sentences... > > before runing the

Re: [PHP] regular expression and exact word search...

2002-11-07 Thread BAROILLER Pierre-Emmanuel
I work with preg_match_all to get all matching words and preg_replace_callback to replace found sentences... before runing the php pass, I take results from a mysql table with a query like this : select * from mytable where content REGEXP '[[:<:]]theword[[:>:]] But... I can't get al

Re: [PHP] regular expression and exact word search...

2002-11-07 Thread .: B i g D o g :.
Which functions are you using to do the regex stuff... That might help...also check out... On Thu, 2002-11-07 at 15:42, BAROILLER Pierre-Emmanuel wrote: > Hi! > > does someone know how to find an exact word in a content with html tags ? > I'm using a regexp like this : > > $searchRegEx = "'\b

Re: [PHP] regular expression and exact word search...

2002-11-07 Thread Maxim Maletsky
Try looking for search engine scripts - they have this feature very simple. -- Maxim Maletsky [EMAIL PROTECTED] "BAROILLER Pierre-Emmanuel" <[EMAIL PROTECTED]> wrote... : > Hi! > > does someone know how to find an exact word in a content with html tags ? > I'm using a regexp like this : > >

[PHP] regular expression and exact word search...

2002-11-07 Thread BAROILLER Pierre-Emmanuel
Hi! does someone know how to find an exact word in a content with html tags ? I'm using a regexp like this : $searchRegEx = "'\b".$word_search."\b'msi"; to get boundary word results, but... if the searched word is like 'word or word. or anything else, the regular expression doesn't work.. if I