demo of creating regexes using strings