Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 16000

Regular expression to find any number in a string

$
0
0

What's the notation for any number in re?Like if I'm searching a string for any number, positive or negative.I've been using \d+ but that can't find 0 or -1


Viewing all articles
Browse latest Browse all 16000

Latest Images

Trending Articles



Latest Images

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