Re: Regular Expression Query
| From: | Brian Clark | Date: | Sat, 06 Jan 2001 21:11:13 +0000 |
| Subject: | Re: Regular Expression Query | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33055@lists.php.net to get a copy of this message | ||
Hello Cybercandy,
(CL == "Cybercandy Ltd") allan@cybercandy.co.uk writes:
CL> I'm trying to break the problem down so I've tried the following
CL> example:
CL> $semifile2 = ereg_replace("\#39","YES",$semifile);
CL> But where there is a string: #39 it doesn't replace it with the
CL> word YES, however if I remove \# then it does replace 39 with YES
<?php print ereg_replace('\#39','YES', 'Can I come? #39!'); ?>
-Brian
--
I haven't lost my mind; it's backed up on tape somewhere.