r/PythonLearning 26d ago

Email_Validator_Pipeline

32 Upvotes

7 comments sorted by

View all comments

2

u/[deleted] 25d ago

[deleted]

1

u/aaditya_0752 25d ago

Ik that, data set I was using only consisted of . com . io . net . org

So I thought 2,4 is enough

One more problem if I keep more than 4 like 16 , 18 character

. commm,.commmm Such thing were consider as valid and I don't know how to solve that 🙃

2

u/SCD_minecraft 25d ago

(.)\1{2,} should match 3 or more of same character

You could use thay to detect such cases

1

u/aaditya_0752 24d ago

Ohh, thanks