I'm using this regex [+-]?(\d+((\.|\,)\d*)?|(\.|\,)\d+)([eE][+-]?\d+)? against the following list of numbers:
1
1.2
1.0
1,0
1wer,043
1dd.44
1D
My regex matches for every example in the list posted.
This is ok for the first set (1, 1.2, 1.0, 1,1) but it also returns a match for the second set (1wer,043, 1dd.44, 1D).
How can I update my regular expression to exclude the last 3 examples?