.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

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -