Test, validate and match regular expressions
Matches a single whitespace character or colon (captured in group 1), but only when it is not followed by a run of characters ending in the word 'name'. Intended to split or tokenize text on spaces/colons while avoiding separators within phrases like 'first name' or 'last name'. Note: the negated class [^first\sname|last\name] treats the pipe and letters as a literal character set, not alternation, so the lookahead simply fails when 'name' appears before any of those letters.