Bert Posted February 18, 2010 Share Posted February 18, 2010 (edited) I'm trying to use Regex to verify a number. Criteria:number must be 7 digits long. 6 or under or 8 and more will cause an error.must support leading zeros - example 0000023no other characters permitted.Examples of what will pass:12345670004567023456712345000022300Examples of what will fail:00000100000001234512 3456001230wedr000I've been trying different things now for about an hour without any success. I did find this site that shows a bunch of examples:http://regexlib.com/Search.aspx?k=number&c=3&m=-1&ps=100 Edited February 18, 2010 by Volly The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now