I have something like this: Cat= "I cost £3,000"
And some are like this: AnotherCat= "that other cat is just £10 more expensive than mine £2990
I want to parse out just 3000 from cat and 2990 from Another Cat
I have something like this: Cat= "I cost £3,000"
And some are like this: AnotherCat= "that other cat is just £10 more expensive than mine £2990
I want to parse out just 3000 from cat and 2990 from Another Cat
Your question is much more complicated then parse number from string. If you just want to extract all number from string you can use next regex:
var result = Regex.Matches(stringValue, @"\d+");
but if you want to to understand, where is price of something, but not a count of cats, for example, it is related to Artificial Intelligence and Machine Learning.