|
Working with our application you can use the following regular expressions:
Let us take a look at several examples: ^[0-5]?[0-9]$ - this simple expression allows to enter any whole number from 00 to 59. 1-digit numbers from 0 to 9 are allowed as well.
You can use regular expressions if you need to create a format that will allow users to enter only phone numbers of the following types: (756)667-7832 or (756) 667 - 7832 ext. 234 In this case the formula will look like \(\d{3}\)\s?\d{3}\s?-\s?\d{4}\s?(\w+\.?\s?\d+)*
Additional examples of complex expressions
See also Popular Formats help chapter and Samples in PDF |