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
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
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
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
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 :
>
>
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
6 matches
Mail list logo