[EMAIL PROTECTED] wrote: > How can I grabb the browser name Opera and the version number from a string, > when it's very important that I get the whole version number. For example: > > Windows XP) Opera 6.05 [en] > > or > > MSIE 6.0; MSIE 5.5; Windows NT 5.1) Opera 7.0 [en] > > Can anyone show me the best way to place Opera and the whole version (i.e., > "Opera 6.05" or any other version number) in a string variable. I thought > maybe a regex would work, but as a newbe I'm just spinning my wheels. Thanks.
The whole of the User-Agent header should be in the environment variable $ENV{HTTP_USER_AGENT} But beware, this only contains the string that the browser puts therem for instance I have: Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows 98) Opera 7.01 [en] which happens to be Opera in covert mode! Cheers, Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]