So I have a regex that goes like:
regex1= re.compile(r'\S+@\S+')
This works perfectly but I am trying to add a character limit so the total amount of characters have to be less than 20.
I tried re.compile(r'\S+@\S+{5,20}')
but it keeps giving me an error. Seems like a simple fix, but cant see what I am doing wrong.