ref #4247 - extract all regexps to constants for even better use and flexibility