test regular expression and rebuild