Re: Grabbing from a string

2003-03-29 Thread Rob Dixon
Wiggins D'Anconia wrote: > [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

Re: Grabbing from a string

2003-03-29 Thread Wiggins d'Anconia
[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

Re: Grabbing from a string

2003-03-29 Thread Rob Dixon
[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

Re: Grabbing from a String

2003-03-29 Thread Stefan Lidman
[EMAIL PROTECTED] wrote: > > In a message dated 3/29/03 7:16:57 AM Eastern Standard Time, > [EMAIL PROTECTED] writes: > > > > This returns 4. I need the Opera 7.0 to be in $browser. > > > > my $string = 'Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT > > 5.1) Opera 7.0 [en]'; > > > > my

Re: Grabbing from a String

2003-03-29 Thread Jimstone77
In a message dated 3/29/03 7:16:57 AM Eastern Standard Time, [EMAIL PROTECTED] writes: > > This returns 4. I need the Opera 7.0 to be in $browser. > > my $string = 'Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT > 5.1) Opera 7.0 [en]'; > > my ($browser) = $string =~ /(\w+\s*[\d.