Build, test, and debug regular expressions
Validates a text field (like a title or name) that is 2-100 characters long and contains only letters, digits, hyphens, spaces, and ampersands. Two lookaheads prevent leading and trailing whitespace, while a negative lookahead blocks consecutive spaces anywhere in the string. Commonly used for input validation of names or titles such as 'Johnson & Johnson' where hyphens and ampersands are permitted.