regex: force entire string to match

NewName b5658606 at
Tue Jan 31 08:29:43 PST 2012

Hello all.
I want to write a regex to check if a whole string is a number.
With my current regex("[0-9]+") numbers will be carved out of things like
"aaa456" (hit: 456) and I circumvent this by checking the lengths for
inequality, which is stupid. My regex is surely missing something?

Thank you for reading.

More information about the Digitalmars-d-learn mailing list