In this post, we will see how to resolve regular expression with group to a string including ( ) and dash
Question:
I am trying to use regular expression to find number. But I never succeed. Can anyone help me with it?Thanks for your help.
Best Answer:
You also need to accept the dot (.
) for the last number, which is not included by \d
(equivalent to [0-9]
).(\d+\.\d+)
.If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com