tas_pats Posted May 19, 2009 Report Share Posted May 19, 2009 Vai šī regex izteiksme būs korekta pozitīvu decimālskaitļu pārbaudei? /^(\d*)(\.?)(\d*)$/ Quote Link to comment Share on other sites More sharing options...
0 bubu Posted May 19, 2009 Report Share Posted May 19, 2009 Nē. Tas atļaus skaitļus formā "123123." Un neatļaus skaitļus formā "12e+5" Iekavas varēji arī tur izlaist, tās tur ir liekas. Quote Link to comment Share on other sites More sharing options...
Question
tas_pats
Vai šī regex izteiksme būs korekta pozitīvu decimālskaitļu pārbaudei?
/^(\d*)(\.?)(\d*)$/
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.