|
-
May 10th, 2013, 07:52 AM
#1
Thread Starter
Addicted Member
Regex Help...Extracting distances from a line of text.
I have the following line of text
3 Smith, Nathan I5 Elite 13-07.75 15-05.25
and would like to extract the last distance (15-05.25). Its ok if I get both however. This is the pattern that I'm using:
\d+\s*[.'-]\s*\d+[.']\s*\d+\s*[.*m chr(34)]*\s*[^-\d*]*\s*\d*[chr(34)]*\s[^\d]
Unfortunatley, it only pulls the first distance (13-07.75).
The pattern is designed to extract distances given in many different formats.
Thank you.
Adrian
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|