I have an input that is valid if it has this parts:
- starts with letters(upper and lower), numbers and some of the following characters (!,@,#,$,?)
- begins with = and contains only of numbers
- begins with "<<" and may contain anything
example: !!Hel@#lo!#=7<<vbnfhfg
what is the right regex expression in python to identify if the input is valid?
I am trying with
pattern= r"([a-zA-Z0-9|!|@|#|$|?]{2,})([=]{1})([0-9]{1})([<]{2})([a-zA-Z0-9]{1,})/+"
but apparently am wrong.