I want to validate my string input with regx in typescript/javascript.
string input is 9 digit followed by WA
I tried using below two Regx, its able to validate digit part, but couldn't validate end of string to be WA.
val.matches('^[0-9]') && val.matches("WA$")
val.matches('^[0-9]WA$')