.net - Regular expression to extract numbers from a string -
can me construct regular expression please...
given following strings...
- "april ( 123 widgets less 456 sprockets )"
- "may (789 widgets less 012 sprockets)"
i need regular expression extract 2 numbers text. month name vary. brackets, "widgets less" , "sprockets" text not expected change between strings, useful if text able varied well.
thanks in advance.
if know sure there going 2 places have list of digits in string , thing going pull out should able use
\d+
Comments
Post a Comment