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]+
try something like this
^[a-z]*x[a-z]*$