I am a newbie at regular expression.
I have strings with formats like
1) 3.72 million people (country rank: 6th) (2004 estimate)
2) 10000 people (2007 estimate)
I would like extract the population number and the time from these two kinds of string. How can I do it in a regular expression in C#. Or do I need to write multiple regular expressions?
Here is a starting point:
A simple driver to show usage:
Outputs: