Re: ereg et all - new question..

From: Date: Thu, 31 Jan 2002 22:14:07 +0000
Subject: Re: ereg et all - new question..
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-83007@lists.php.net to get a copy of this message
Maybe I better ask my question different... what i want to do is, to highlight certain text in a string... for example: "This equals this equals tHis..." has to become: "<b>This</b> equals <b>this</b> equals <b>tHis</b>"... so dispite the case, the <b>'s should be put around it... does that make it easier? not for me :-) Greets, Edward ----- Original Message ----- From: "Jeff Sheltren" <sheltren@home.com> To: "Edward van Bilderbeek - Bean IT" <edward@bean-it.nl>; <php-general@lists.php.net> Sent: Thursday, January 31, 2002 11:06 PM Subject: Re: [PHP] ereg et all > Ahhh, ok makes more sense now. Although, I don't think that there is an > "easy" way to do what you are asking. I think that in order to accomplish > that, you will have to specify all possible cases of a string, and have a > ereg_replace() statement for each of them. > > Jeff > > At 11:01 PM 1/31/2002 +0100, Edward van Bilderbeek - Bean IT wrote: > >Oh, that was a typo... sorry... > > > >it should be: > > > >"This equals this equals tHis" -> "That equals that equals tHat" > > > >Edward > > > >----- Original Message ----- > >From: "Jeff Sheltren" <sheltren@home.com> > >To: "Edward van Bilderbeek - Bean IT" <edward@bean-it.nl>; > ><php-general@lists.php.net> > >Sent: Thursday, January 31, 2002 10:56 PM > >Subject: Re: [PHP] ereg et all > > > > > > > I'm not sure why you wanted the last word "tHis" to be changed to "That" > > > (with a capital)... can you explain further? > > > > > > Jeff > >

« previous php.general (#83007) next »