Validate A String for Numbers and a Special Character

Viewed 31

What would be a regex I can use to validate a string that is 11 characters long and only contains numbers and '*'. The wildcard and numbers can be anywhere in the string.

Examples for passes:

1212*******
*******1234
****234****
121****2343
12*2**3*44*
**34*332**3

Bonus question: How can I update the regex above to also include letters in any space?

Thank you for your help!

0 Answers
Related