added regexes for before-domain patterns