I need a regular expression to allow:
I've had enough with something like "^[АЯ-Ёа-яё0-9' ']$", - but that's not what I need.
This should work:
^(?! )(?!.* )(?!.* $)[^\s].*$
The following is a breakdown of the expression:
I ran a small test on regex101.com.
This should work:
The following is a breakdown of the expression:
I ran a small test on regex101.com.