Create all regular expressions only once