Subject: | fails on MSIE6 + MRA |
=== Internet Explorer 6.0
--- input
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; MRA 4.6
(build 01425); Maxthon; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
--- expected
name: "Internet Explorer"
version: "6.0"
vendor: "Microsoft"
os: "Windows"
Simple solution is to allow one level of nested quotes. Something like this:
/\(.*?(?:\(.*?\).*?)?\)/
--
Alexandr Ciornii, http://chorny.net