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.


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to