Thread: RegEx & Unicode
View Single Post
Old 12-01-2011, 06:47 PM   #13
capnm
Groupie
capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'capnm knows the difference between 'who' and 'whom'
 
Posts: 156
Karma: 10001
Join Date: Feb 2011
Device: sony
Quote:
Originally Posted by Serpentine View Post
You can most likely use something like :
Code:
(?i)(?:^|\s+)(\d+\.?\d*?|[\D])
To grab all of the interesting first characters/numbers
Yes ... that's very like one of my variations:
Code:
\s*(\d+\.?\d*\w?|\w)[a-z_\']*\.?\s*
But I'm curious -- why the leading (?:^|\s+) instead of \s*
is there a functional difference?

Thanks!
capnm is offline   Reply With Quote