How do I search for a string that contains only chars from a set including x, and require it to contain x? e.g. [a-z]+ but not matching if it doesn
x
[a-z]+
[a-z]*x[a-z]* should do the trick.
[a-z]*x[a-z]*