I am facing a problem to extract a particular numeric value from an input string.
Say, I had one string “this23 is 67 test 56 string 45”, and i have to fetch number 67 from the string then how can i extract this using regular expresseion?
I only have to use regular expression.
Do you have any idea about it?
Thanks in advance,
[^\d]*[\d]+[^\d]+([\d]+)The first chunk is 0 or more non-digits, followed by 1 or more digits, followed by 1 or more non-digits, followed by 1 or more digits. In parentheses so that you can capture it in whatever language you’re using.