I'd like to have a reqex that checks that every character is a number [0-9]+. I have tried:
'4th'=~/[\d]+/
'4th'=~/\d+/
but not working. How would I check for this?
thx
"12345" =~ /\A\d+\Z/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With