Could someone explain me the code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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!

25th Mar 2020, 3:34 PM
Oana Buzatu
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
25th Mar 2020, 3:45 PM
Lothar
Lothar - avatar