Regular expression validating phone number
Your organization has a few vacant positions and you are planning to use the Google Forms service to prepare a pre-interview questionnaire for job applicants.You have created a form and it has all the standard fields where candidates can enter their name, email address, website URL, phone number, zip code and other essential details.Consult the regular expression documentation or the regular expression solutions to common problems section of this page for examples. You can create range of characters using the hyphen character such as A-Z (A to Z).If you need more examples or solutions, please contact me. Note that in character sets, special characters (., *, ) do not have any special meaning. This means match anything that is a single white space character OR anything that is not a white space character!
A regular expression may appear gibberish but they aren’t so difficult to read and understand if you can know the basic rules of the language.
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.
Note that there's just no way to check if the last portion of a path is a file or a directory just by the name alone.
URL (Web domain) – this is useful for fields that require the user to enter their website address and it even matches the upcoming TLDs like .directory or .restaurant.
The other regex matches You Tube URL including those using the domains.6.
What you see here is a compilation of some useful regular expressions that can be used to validate common form fields like URLs, phone numbers, zip codes, dates, etc.1.