A pattern builder to regular expressions