I need a regular expression that allows:
I had enough for something like "^[АЯ-Ёа-яё0-9' ']+$", - but that's not what I need.
This should work:
^(?! )(?!.* )(?!.* $)[^\s].*$
Here's a breakdown of the expression:
I have put together a mini test on regex101.com.