In a weak attempt at improving my knowledge of regular expressions, I came up with a less elegant solution than Dan's. :-)
$os=eregi_replace("Win([^0-9NT]*)", "Windows \1" $os); This adds some additional handy replacements, such as: Winblows98 -> Windows 98 Windoze98 -> Windows 98 It's a decent (well, so maybe not) example of using a replacement string, which I've always thought was neat. Happy hacking. Chris Analysis & Solutions wrote: > $os = eregi_replace('(Windows|Win)', 'Windows ', $os); > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php