Patrick Teague wrote: >For some reason the following line is not behaving > >$os = eregi_replace( "Win[^dows]", "Windows ", $os ); >
I'm pretty sure (I'm not a regular expression expert) this matches "a string that begins with Win followed by a character that is not d, o, w, or s. Thus, in the case of Win98, it replaces "Win9" with "Windows " and leaves the 8 alone. Happy hacking. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php