I dont know if you can help me or not but what i am trying to do is search database for words containing certain letters eg. i fI entered TEST it would find words contianing those letters (or a subset of them)

so how would I write that. I tried:
regexp '[t{0,2}e{0,1},s{0,1}]' but that isnt working it says that its the wrong syntax.

So Im wondering how I would right an expression to do this?

Any help would be appreciated.