minimal changes in the regex generation
minimal changes in the regex generation