From: Kioko -- Date: 2009-09-08T01:12:31+09:00 Subject: Re: How to convert a "normal" searchstring into regexp Robert Klemme wrote: > this seems to do the trick: > http://pastie.org/608326 > I haven't tested it much though... Thanks, but unfurtunatly it seems to not work correctly. As I tested it with my example string "my.li??le.searchstri*g\?" the result was > "/^..my\\.li.*le\\.searchstri\\?g$/". (to compare it easier, it should be something like: > "/^my\.li..le\.searchstri.*g\?$/" robert, thank you too but also with your script I get an error if I try to run it: > undefined (?...) sequence: /(?