Re: Can I validate that input is numeric without regular expressions?



On 12 Feb, 18:34, "-Lost" <maventheextrawo...@xxxxxxxxxx> wrote:
Response to christ...@xxxxxxxxx:

That a string was passed into it (yet I've come to realize that
was not the problem, the problem was no input that did not
represent numeric input).

My understanding and deep admire the language of the mighty ale
brewers might be slighty off but checking for no input?
that sorta what I suggested by copying a nice solution found on
the web.

I didn't word that well -- I meant that I didn't want anyone to
input something that could not possibly be interpreted as numeric.

For example, "zrx" was not allowed yet I (at the time) was not aware
of what I needed to do to accomplish that (or how to word it
properly).

Thin this was a nice thread, sorry it ended so abruptly without a
regex solution to 234e+4 and 234,432.234, or hex, oct, roman XVIC,
binary fits well into decimal som I wont go there, just a problem
to know "there ar only 10 sort of programmers, those who know
binary and those who dont..."

I'm not entirely sure what that meant, but just in case, I was not
looking for a handout.  I simply wanted a better handle on my problem
which was I had not read far enough to answer the questions I had
come up with or enough to allow me to understand what was really
going on.

Parts of this thread and a bit of reading on the items mentioned here
actually solved all of my problems.

Have a good day.

--
-Lost
Remove the extra words to reply by e-mail.  Don't e-mail me.  I am
kidding.  No I am not.

Not to mention that we all now remember that exponential numbers and
hexadecimal numbers are numeric inputs ;)
To put the question just right is problematic, at the least, me runing
it is worse... but still is "IV" != 4
//CY
.



Relevant Pages

  • Re: Can I validate that input is numeric without regular expressions?
    ... My understanding and deep admire the language of the mighty ale ... regex solution to 234e+4 and 234,432.234, or hex, oct, roman XVIC, ... binary fits well into decimal som I wont go there, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Can I validate that input is numeric without regular expressions?
    ... that sorta what I suggested by copying a nice solution found on the ... Thin this was a nice thread, sorry it ended so abruptly without a ... regex solution to 234e+4 and 234,432.234, or hex, oct, roman XVIC, ... binary fits well into decimal som I wont go there, ...
    (microsoft.public.dotnet.languages.csharp)