Need a RegEx to check Exactly 8 letter string (including special chars) that accepts atleast 1 alphabet & 1 digit : without lookahead assertions ((?=))
Example: @#$3%*&J
I have the below regex with lookahead assertions ((?=)) :
^(?=.[0-9])(?=.[a-zA-Z])(?=S+$).{8}$
But, The platform in which I’m trying to use this regex,
it internally uses the RE2 regular expression library, which does not support some advanced features like lookahead assertions ((?=)).
Could someone suggest a different way to make this work?
Gaayathri L is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.