I have wrote the following test code snippet:
"123".matches("\[a-zA-Z0-9]{1,5}");
However, it returns false
.
Why and how to fix this?
question from:https://stackoverflow.com/questions/65938869/how-to-in-kotlin-match-english-letters-in-mixed-string