Michael...
 
The string I'd like to extract is in parentheses. But the parentheses (and
their contents) are not in the original string.

  _____  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Geary
Sent: Thursday, October 25, 2007 4:39 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Best regex for this, getting software version numbers


Andy, can you be more specific? I'm not certain from the description exactly
what string you want to extract. If you could list examples of both the
original strings and the expected result strings, that would help. Also
include examples of the edge cases. (Second period? Where?)
 
-Mike


  _____  

From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Thursday, October 25, 2007 2:32 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Best regex for this, getting software version numbers


I have these strings:
 
Firefox 2.0.0.8 (Firefox 2.0)
 
Internet Explorer 7.0 (Internet Explorer 7.0)
 
Googlebot 2.1 (Googlebot 2.1)
 
Yahoo! Slurp (Yahoo! Slurp)
 
etc.
 
I'd like to grab everything up to a second period (if it exists). What I
want is in parens next to each string.
 
Anyone have any ideas?
 

____________________________________
 
Andy Matthews
Senior ColdFusion Developer

Office:  877.707.5467 x747
Direct:  615.627.9747
Fax:  615.467.6249
[EMAIL PROTECTED]
www.dealerskins.com <http://www.dealerskins.com/> 
 

<<atte6357.bmp>>

Reply via email to