robert_gsfame Posted July 16, 2010 Share Posted July 16, 2010 How can i check whether a string contain any numbers or not....using REGEXP thx Quote Link to comment Share on other sites More sharing options...
Adam Posted July 16, 2010 Share Posted July 16, 2010 if (str.match(/[0-9]/)) { // contains a number } Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted July 16, 2010 Author Share Posted July 16, 2010 thx mrAdam...i always get the difficulty when it comes to RegExp.... :P so confusing Quote Link to comment Share on other sites More sharing options...
Adam Posted July 16, 2010 Share Posted July 16, 2010 Ha, many people think the same. Just takes a bit of time.. Quote Link to comment Share on other sites More sharing options...
robert_gsfame Posted July 16, 2010 Author Share Posted July 16, 2010 haha...thx a lot!!! Quote Link to comment Share on other sites More sharing options...
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.