Regular expression validating phone number
Consult this page for more details on this problem. For the actual date validity, you should rely on another language.
The following expressions will validate the number of days in a month but will NOT handle leap year validation; hence february can have 29 days every year, but not more. A SIN should also be validated by computing the checksum digit.
Character Limit – the default text box in a Google form allows users to input any number of characters but you can impose a limit with the help of regular expression.
Here we limit the input to 140 characters much like Twitter. Word Limit – If you would like to limit the number of words that a user can type in the input field of a Google Form, there’s a regex for that as well.
This will LEAVE the content of the tags within the string.
Hi, could some one help me with validation of phone numbers using regular expressions? after removing all non-alpha-numeric characters, phone number must be atleast 10 chars long.
This regex will tolerate the form XXX XXX XXX, XXXXXXXX or XXX-XXX-XXX. Since every part of a path is separated by a \ character, we only need to find the last one.
The other regex matches You Tube URL including those using the domains.6.At the time of designing the form, expand the “Data Validation” section below the form field (see screenshot above) and choose Regular Expression from the drop-down.Next select “Matches” in the other drop-down and enter ^(19\d|20[0-1]\d)$ in the input field.Make sure to be in global mode (g flag), case insensitive and to have the dot all option on.This regular expression will match all HTML tags and their attributes.