regexp out of functions