I have a requirement to write a regex to validate a text entry. The text must be between 5 and 16 characters (a-Z plus hyphen, underscore and space). This is fine but it must also check that there are not any consecutive spaces.
e.g.
hello // PASS
hello there // PASS
hi there you // PASS
hello there // FAIL - two spaces between hello and there