+ 2
Could someone explain me the code?
Could someone explain me the following code? '(<)?(\w+@\w+(?:\.\w+)+)(?(1)>|$)'. I need him for an email validator. Thanks!
1 Answer
+ 4
If you are new to regex, it doesnt make sense to explain this expression, it is a bit complex. But you can use:
https://pythex.org/
to check your regex against a string. To get more familiar with regex, you should learn it from scratch. Keep in mind, that a regex pattern can behave different for different languages. Here is the link to one of the best sources to learn regex:
https://www.rexegg.com/regex-quickstart.html