I have an input that has to be uppercase (with unicode support), and that can contain multiple spaces or dashes
- (and that should start and end with letters).
I have made this regex :
As seen here, this matches everything I need unless it contains multiple dashes or spaces (
ABC DEF and
ABC-DEF work, but
AB CD EF don’t work).
I am still a beginner with regex so please bear with me 🙂
Thanks in advance,