Andrei Alexandrescu Wrote: > I guess > > return collectException(to!real(input)) is null; > > should be a fine replacement for isNumeric. > > > Andrei
I found another way to improve the isNumeric function. I'm doing it with a (ugly) regular expression but it works very well but maybe we could (should !) improve it a bit more. See in the attach file how I did it. There are some asserts and "old tests". I probably forget something but this can be a new base for the isNumeric function. Give me any feed back and telle me wath you think about it.
newIsNumeric.d
Description: Binary data