C.R.Vegelin wrote:
- Original Message - From: "Puiu Hrenciuc" <[EMAIL PROTECTED]>
To:
Sent: Thursday, September 20, 2007 12:56 PM
Subject: Re: [PHP] highlighting searchterms as bold text
Sorry, I didn't read d) right (NOT Methyl),
here is teh new regex :
/(
- Original Message -
From: "Puiu Hrenciuc" <[EMAIL PROTECTED]>
To:
Sent: Thursday, September 20, 2007 12:56 PM
Subject: Re: [PHP] highlighting searchterms as bold text
Sorry, I didn't read d) right (NOT Methyl),
here is teh new regex :
/(\b#SearchTermHere#(\w+)
- Original Message -
From: "Deniz Dizman (BST UGB)" <[EMAIL PROTECTED]>
To: "C.R.Vegelin" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]"
Sent: Thursday, September 20, 2007 12:25 PM
Subject: RE: [PHP] highlighting searchterms as bold text
you prob
thing about
logic.
> > -Original Message-
> > From: C.R.Vegelin [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 20, 2007 1:59 PM
> > To: Deniz Dizman (BST UGB); [EMAIL PROTECTED]
> > Subject: Re: [PHP] highlighting searchterms as bold text
> >
>
C.R.Vegelin" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]"
Sent: Thursday, September 20, 2007 11:29 AM
Subject: RE: [PHP] highlighting searchterms as bold text
thats odd because the regex passes when I test it with this online tool:
http://samuelfullman.com/team/php/tools/regular_expr
<[EMAIL PROTECTED]>
To: "C.R.Vegelin" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]"
Sent: Thursday, September 20, 2007 11:29 AM
Subject: RE: [PHP] highlighting searchterms as bold text
thats odd because the regex passes when I test it with this online tool:
ht
- Original Message -
From: "Deniz Dizman (BST UGB)" <[EMAIL PROTECTED]>
To: "C.R.Vegelin" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]"
Sent: Thursday, September 20, 2007 11:29 AM
Subject: RE: [PHP] highlighting searchterms as bold text
thats o
On 20 September 2007 11:34, Edward Kay wrote:
> > > Hi everyone,
> > >
> > > I want to highlight (bold) searchterms in text.
> > > For example, for all words starting with "ethyl":
> > > a) replace "ethyl" by "ethyl"
> > > b) replace "Ethyl" by "Ethyl"
> > > c) replace "ethylene" by "ethylene"
>
> > Hi everyone,
> >
> > I want to highlight (bold) searchterms in text.
> > For example, for all words starting with "ethyl":
> > a) replace "ethyl" by "ethyl"
> > b) replace "Ethyl" by "Ethyl"
> > c) replace "ethylene" by "ethylene"
> > d) but not "methyl" by "methyl"
> >
> > Now I use:
> > $pat
- Original Message -
From: "Deniz Dizman (BST UGB)" <[EMAIL PROTECTED]>
To: "C.R.Vegelin" <[EMAIL PROTECTED]>; "[EMAIL PROTECTED]"
Sent: Thursday, September 20, 2007 10:38 AM
Subject: RE: [PHP] highlighting searchterms as bold text
try
Hi everyone,
I want to highlight (bold) searchterms in text.
For example, for all words starting with "ethyl":
a) replace "ethyl" by "ethyl"
b) replace "Ethyl" by "Ethyl"
c) replace "ethylene" by "ethylene"
d) but not "methyl" by "methyl"
Now I use:
$patterns[0] = "/ethyl/";
$replacements[0] = "e
11 matches
Mail list logo