Re: ereg et all

From: Date: Thu, 31 Jan 2002 22:01:56 +0000
Subject: Re: ereg et all
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-83001@lists.php.net to get a copy of this message
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 > > At 10:52 PM 1/31/2002 +0100, Edward van Bilderbeek - Bean IT wrote: > >that is not what I meant... I want the cases to remain... > > > >----- Original Message ----- > >From: "Rick Emery" <remery@excel.com> > >To: "'Edward van Bilderbeek - Bean IT'" <edward@bean-it.nl>; > ><php-general@lists.php.net> > >Sent: Thursday, January 31, 2002 10:47 PM > >Subject: RE: [PHP] ereg et all > > > > > > > try: eregi_replace("this","that","This equals this equals > > > tHis"); > > > > > > > > > -----Original Message----- > > > From: Edward van Bilderbeek - Bean IT [mailto:edward@bean-it.nl] > > > Sent: Thursday, January 31, 2002 3:40 PM > > > To: php-general@lists.php.net > > > Subject: [PHP] ereg et all > > > > > > > > > hi, > > > > > > is there a simple way to replace an occurence of a string, into another, > > > maintaing capital positions... > > > > > > Like: > > > $str = "This equals this equals tHis"; > > > > > > and I wanna replace all occurences of "this" in "that", that the result > >will > > > be: > > > > > > $str = "That equals that equals That"; > > > > > > Edward > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#83001) next »