In tclsh, version 8.4, the following works:
% info tclversion
8.4
% regexp -- {(MSIE).([0-9.]{1,})} "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)" dummy p ver
1
% echo $p
MSIE
% echo $ver
6.0
Within code running on AOLServer 3.5.9 (works on 3.4.2)
if [regexp -- {(MSIE).([0-9.]{1,})} $agent dummy p ver ] {
mb_log_ex 1 " TEST IE Found agent:$agent $dummy $p $ver"
}
where agent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)"
Succeeds, but...
$p = Mozilla
$ver = 4.0
Ideas?
Thanks - Howard
-- AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> with the body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: field of your email blank.