RE: [PHP] case insensitive str_replace()
| From: | Wizaerd | Date: | Mon, 28 Aug 2000 05:44:03 +0000 |
| Subject: | RE: [PHP] case insensitive str_replace() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13900@lists.php.net to get a copy of this message | ||
thanx, I appreciate the reply. I had originally thought of using that, but
thought I'd have to come up with some complex regular expression, which I
still haven't quite gotten the hang of. Your answer led the way to clear
thinking and enlightenment.
Ok, so it sounded goofy, but you really did help me outta a jam. Thanx!
Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics, ColdFusion
http://www.wizaerd.com
=================================
> -----Original Message-----
> From: Brian Clark [mailto:brianj@ais.ais-gwd.com]
> Sent: Sunday, August 27, 2000 6:13 PM
> To: wizaerd@wizaerd.com
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] case insensitive str_replace()
> Since you want case-insensitivity, you'll probably need to go with
> eregi_replace()
>
> <?php
>
> $txtHoldText = '[h][H]';
> print eregi_replace('\[h\]', '<H3>', $txtHoldText);
>
> ?>
>
> http://www.php.net/manual/html/function.eregi-replace.html
>
> Brian