Stunner01225
Technical User
Hello.
I am writing a piece of server side code that uses Regular expressions (groan). I have been trying to get it right for days now.
I receive Input in the form of strings formatted as such "0.0" , "0.0.0" ,"0.0.0.0"
I need an expression that will be true for the first("0.0") but not any others. the expression also has to pass "10.0" as true.
I have been working along the lines of \d+\.\d+ but I cannot get it to work.
Does anyone have any ideas?
Thanks in advance for any help given.
I am writing a piece of server side code that uses Regular expressions (groan). I have been trying to get it right for days now.
I receive Input in the form of strings formatted as such "0.0" , "0.0.0" ,"0.0.0.0"
I need an expression that will be true for the first("0.0") but not any others. the expression also has to pass "10.0" as true.
I have been working along the lines of \d+\.\d+ but I cannot get it to work.
Does anyone have any ideas?
Thanks in advance for any help given.