The title might be confusing, but I will try to use some examples to explain. This is the current expression I've made.
^([A-ZÆØÅ][a-zæøå]+[\s-]{1}){2,20}$
I want an expression that will match these: So the general rule is,
-Every word has to start with a capital letter
-Following a capital letter can only be small letters
-There can be max one - or whitespace after each other
And the hard part, in every combination of these, I want the final line to be a maximum of 20 chars
I want an expression that will match these:
April-Can Æøå
An-An-An An An-An
Aaaaabbbbbcccccddddd
Aaa
Non-matching
andkas
Andfak-lkakad
AppleApple
Carrotcarrotcarrotcarrotcarrotcarrot
Banana- Banana
Apple-apple-apple-apple-apple banana banana apple carrot