Regex validaiton help

Im using this ^[a-zA-Z0-9][a-zA-Z0-9]*([._-][a-zA-Z0-9]+){0,15}$
to validate username/pagenames

Im also showing specific error messages.

I have figured out most errors but these two
Pagenames may contain "." "_" or "-" but not consecutively

Pagenames can only contain Latin letters, numbers and "-", "_", "." but no other special characters

This topic was automatically closed after 70 days. New replies are no longer allowed.