Generate strings that match a given regular expression