Rory Browne wrote:
< won't be picked up as a word boundry (\b).
Aparently it will.
I stand corrected based on these two rules for \b since < and > are
non-word characters...
# Between a word character and a non-word character following right
after the word character.
# Between a non-wor
On 6/8/05, John Nichel <[EMAIL PROTECTED]> wrote:
> Rory Browne wrote:
>
> >>Good catch Rory. A regex replace would work better here.
> >>
> >>$search = "body";
> >>$find = "/\b" . $search . "\b/";
> >>preg_replace ( $find, "" . $search . "", $html );
> >
> >
> > I don't think so. If I'm reading
Rory Browne wrote:
Good catch Rory. A regex replace would work better here.
$search = "body";
$find = "/\b" . $search . "\b/";
preg_replace ( $find, "" . $search . "", $html );
I don't think so. If I'm reading your code correctly you still have
the same problem, as I outlined above. There i
On 6/8/05, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> I don't think so. If I'm reading your code correctly you still have
> the same problem, as I outlined above. There is no simple solution to
> this. It either involves advanced regex(more advanced than my
> understanding of it), or a pro
[snip]
I don't think so. If I'm reading your code correctly you still have
the same problem, as I outlined above. There is no simple solution to
this. It either involves advanced regex(more advanced than my
understanding of it), or a proper parser.
[/snip]
Also it should be noted that the tag p
Rory Browne wrote:
On 6/8/05, John Nichel <[EMAIL PROTECTED]> wrote:
Rory Browne wrote:
On 6/8/05, David Duong <[EMAIL PROTECTED]> wrote:
Sebastian wrote:
i'm looking for a function that can highlight certain search terms in a
string. anyone have something already made that i can plugin
John Nichel wrote:
Rory Browne wrote:
On 6/8/05, David Duong <[EMAIL PROTECTED]> wrote:
Sebastian wrote:
i'm looking for a function that can highlight certain search terms in a
string. anyone have something already made that i can plugin to my
exisiting code?
I found a couple but they do n
On 6/8/05, John Nichel <[EMAIL PROTECTED]> wrote:
> Rory Browne wrote:
> > On 6/8/05, David Duong <[EMAIL PROTECTED]> wrote:
> >
> >>Sebastian wrote:
> >>
> >>>i'm looking for a function that can highlight certain search terms in a
> >>>string. anyone have something already made that i can plugin t
Rory Browne wrote:
On 6/8/05, David Duong <[EMAIL PROTECTED]> wrote:
Sebastian wrote:
i'm looking for a function that can highlight certain search terms in a
string. anyone have something already made that i can plugin to my
exisiting code?
I found a couple but they do not work very well.. s
On 6/8/05, David Duong <[EMAIL PROTECTED]> wrote:
> Sebastian wrote:
> > i'm looking for a function that can highlight certain search terms in a
> > string. anyone have something already made that i can plugin to my
> > exisiting code?
> >
> > I found a couple but they do not work very well.. some
David Duong wrote:
Sebastian wrote:
i'm looking for a function that can highlight certain search terms in
a string. anyone have something already made that i can plugin to my
exisiting code?
I found a couple but they do not work very well.. some break html code
if the string contains the ke
Sebastian wrote:
i'm looking for a function that can highlight certain search terms in a
string. anyone have something already made that i can plugin to my
exisiting code?
I found a couple but they do not work very well.. some break html code
if the string contains the keywords in the html.
12 matches
Mail list logo