in reply to Re: How do I determine with a regular expression whether a scalar is a number/whole/integer/float?
in thread [SOLVED] How do I determine with a regular expression whether a scalar is a number/whole/integer/float?
Hello BrowserUk,
You are right, I modified the question while you where trying to answer it. I am sorry for that. I noticed that I was testing two number 1 and 1.0 which will give the exact output.
That is why I modified the code again. I have updated the testing code and also the output.
Thank you for your time and effort reading and assisting me with my question.
|
|---|