I need to formulate a regular expression that validates emails [closed]

0

I need to formulate a regular expression that validates emails in python (3) ..but I am a bit lost in the topic of regular expressions ... and I have read about the care that must be taken when using them .. thank you

    
asked by Marco Guevara 21.09.2018 в 22:10
source

1 answer

0

This brutality I took a long time ago from the English forum and is the one I use to validate my emails. It has never failed me

/^(([^<>()\[\]\.,;:\s@"]+(\.[^<>()\[\]\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$

Here's how the validation looks graphically

    
answered by 22.09.2018 / 02:39
source