Re: determine NS release/level using regexp

Schamil Wackenhut <[email protected]> Mon, 13 Jan 2003 18:31:42 +0100
Newsgroups gmane.comp.jakarta.regexp.user
Message-ID <20030113173142.GA11929@fuckup>
* Esbrook, Scott meinte:

> RE nsRegExp = new RE("(netscape*)/");

this matches:
'n' followed by 'e' fb 't' fb 's' ... fb 'p' fb 'e' fb 'null or more "e"'
fb '/'
 
> boolean matched = nsRegExp.match("mozilla/5.0 (windows; u; windows nt 5.0;
> en-us; rv:0.9.2) gecko/20010726 netscape6/6.1");

return false, cause 'e' is followed by '6' not 'null or more "e"'

.sw
-- 
bash$ :(){ :|:&};: