Answer the question
In order to leave comments, you need to log in
How to truncate a point with a regular expression?
How to get an email without a dot at the end using a regular expression? There are typos and therefore it is necessary to remove this point.
For example "[email protected]" the output should be "[email protected]".
console.log(('Адрес: [email protected]'.match(/(?:Адрес: )(.+)(?:\.*?)$/) || [])[1]);
console.log(('Адрес: [email protected]'.match(/(?:Адрес: )(.+)(?:\.*?)$/) || [])[1]);
Answer the question
In order to leave comments, you need to log in
preg_match(/[0-9a-z_\!\#\$\%\&\'\*\+\-\/\=\?\^\_\`\{\|\}\~]*@ [0-9a-z\-]{2,63}.[az]{2,3}/')
It seems that everything was turned on correctly
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question