Hello,
var bla = "How are u doin there?";
var search = "how";
bla.search(...);
I'm usally doing this with eval:
var bla = "How are u doin there?";
var search = "how";
bla.search(eval("/"+search+"/i"));
This is not very nice ("eval is evil"), but it works.
Regards,
Jörg