so i have to do a e-mail and phone number validation, i looked it up online but could someone explain me what this piece of code means(its for the phone validation)
/^\+?([0-9]{2})\)?[-. ]?([0-9]{4})[-. ]?([0-9]{4})$/;
so i have to do a e-mail and phone number validation, i looked it up online but could someone explain me what this piece of code means(its for the phone validation)
/^\+?([0-9]{2})\)?[-. ]?([0-9]{4})[-. ]?([0-9]{4})$/;
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
Please use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks are not single quotes.