Honestly matching emails with a regex is such a crapshoot that I'd recommend just matching anything that isn't a path separator.