Forums Register Login

simple regex problem

+Pie Number of slices to send: Send
Hi All

I am stuck with this simple regex. Here is my code


wheather string is 123 or 123a, it always prints non numeric..

Any clue???
+Pie Number of slices to send: Send
In the code \\d stands for degit.

Try this
+Pie Number of slices to send: Send
More precisely, "\\d" matches only one digit. If you want to match one or more digit, you'll have to add "+" quantifier.
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 791 times.
Similar Threads
Literal
Another Dan's erroneous definition?
Regex
A simple RegEx just doesn't make sense...
Regular expression to check for specific special characters (any repitition) and 0 to 9 numbers
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 00:54:12.