Create regular expressions with structure