Please help me make up a regular schedule for such conditions: the text should not consist only of numbers, the text can consist of numbers, Latin letters of both registers, underscores and a hyphen _- .
PS However, I can’t even give an example. I know how to find the digits \d , I know how to find the letters and symbols [A-Za-z-_] , but I don’t know how to make a string just be digital. :(
PPS It may be clearer if I indicate that I use the regulars in django-vskom RegexValidator to validate the model field.
The initial can be any of the characters, including the number. It does not matter. The main thing that the line could not consist only of numbers.
[A-Za-z_][A-Za-z0-9_]+- nick_n_a