Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

regular expression

$
0
0
I wanna use regular expression to match numbers, but didnt use it for a while, so I kinda forget. Can anyone help me validate what I have is correct or not?
So numbers like -5.4, 5, 5.0 should be fine. There is no limit of how many digits I can have before and after decimal point.
\\-[0-9]+\\.[0-9]*

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>