|
|
|
|
|
by sourabhv
1435 days ago
|
|
Switch from "regex to english" and write "email". Instead of saying it will match the string "email", it says the opposite, english -> regex conversion > regex = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i > This regular expression is used to match an email address. It starts by matching any character that is not a space or the "@" symbol, followed by the "@" symbol, then any characters that are not a space or the "." symbol, followed by a "." character, and finally any characters that are not a space. |
|