I have two validating regular expressions I'm not sure how to combine into one:
(?=^\w{1,10}$)(?!^\d+$) #Alphanumeric string up to 10 chars, can't be all just numbers
(?=^\w{1,20}$)(?!^[a-zA-Z]
+$) #Alphanumeric string up to 20 chars, can't be all just letters
The valid input string would be in format: A\B where A is the first regex and B is the second. Any tips on how to do this?
Thanks
Start Free Trial