RegEx - Name Validation | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

RegEx - Name Validation

I would like to validate my name field by the following: 1. 2-30 chars 2. No numbers (but can allow special chars, there are names that include special chars). What is the RegEx equivalent to that? And is there anything else I need to add to the RegEx? (Pay attention that it's not case sensitive)

22nd Sep 2022, 5:58 AM
Yahel
Yahel - avatar
1 Antwort
+ 3
/^[^0-9]{2,30}$/
22nd Sep 2022, 6:18 AM
Calviղ
Calviղ - avatar