eregi_replace driving me nuts
| From: | Patrick Teague | Date: | Wed, 10 Jul 2002 03:21:33 +0000 |
| Subject: | eregi_replace driving me nuts | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106655@lists.php.net to get a copy of this message | ||
Hello,
For some reason the following line is not behaving
$os = eregi_replace( "Win[^dows]", "Windows ", $os );
this should take any form of Win9x (or WinNT, or Win2k, etc) & convert it so
it shows Windows 9x (or Windows NT, or... you get the picture). After
running "Win98" through the above eregi_replace I end up with "Windows 8".
Same problem with any of the other strings.
What's my problem??
Patrick Teague