Re: [PHP] highlighting searchterms as bold text

2007-09-20 Thread Puiu Hrenciuc
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 : /(

Re: [PHP] highlighting searchterms as bold text

2007-09-20 Thread C.R.Vegelin
- 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+)

Re: [PHP] highlighting searchterms as bold text

2007-09-20 Thread C.R.Vegelin
- 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

Re: [PHP] highlighting searchterms as bold text

2007-09-20 Thread Robert Cummings
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 > > >

Re: [PHP] highlighting searchterms as bold text

2007-09-20 Thread Puiu Hrenciuc
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

Re: [PHP] highlighting searchterms as bold text

2007-09-20 Thread Puiu Hrenciuc
<[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

Re: [PHP] highlighting searchterms as bold text

2007-09-20 Thread C.R.Vegelin
- 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

RE: [PHP] highlighting searchterms as bold text

2007-09-20 Thread Ford, Mike
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" >

RE: [PHP] highlighting searchterms as bold text

2007-09-20 Thread Edward Kay
> > 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

Re: [PHP] highlighting searchterms as bold text

2007-09-20 Thread C.R.Vegelin
- 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

[PHP] highlighting searchterms as bold text

2007-09-20 Thread C.R.Vegelin
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