Subj : Seaching Strings To : Cyclops From : Deuce Date : Tue Apr 04 2006 05:03 pm Re: Seaching Strings By: Cyclops to All on Tue Apr 04 2006 02:51 pm > How does one do a simple string search in js? > > I want to get a simple true/false answer with if string1 is inside string2 > at any position in the string If string1 is a literal, you can do this: (string2.search(/string1/)==-1) Otherwise... (string2.search(new RegExp(string1))==-1) --- This sig is not directed at Jazzman. --- þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!) .