PDA

View Full Version : Regular Expression Help


kalm
01-27-2003, 02:26 PM
I need to use a Regular Expression to match a word in a multi word string variable against another single word string variable. can anyone help as i don't have much experience with regular expressions.

CRASH_OVERRIDE
01-27-2003, 02:43 PM
I asked this same q not long ago... These helped a lot ;)
http://www.siteexperts.com/tips/functions/ts23/page1.asp
http://developer.netscape.com/docs/manuals/js/client/jsref/regexp.htm

beetle
01-27-2003, 04:35 PM
if you go through a tutorial or two and are still stuck, lemme know.

I'm pretty good with regex.

kalm
01-27-2003, 07:39 PM
Thanks, I'm running through the tutorials and will get back to you if i have any problems

whammy
01-28-2003, 12:00 AM
I know I'm always touting regex's, but depending on what you're doing you might also be able to use indexOf().

kalm
01-28-2003, 08:25 AM
Thanks Whammy, i didn't think of that.