[ScriptingHelp] Match Whole Words Only - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: [ScriptingHelp] Match Whole Words Only (/showthread.php?tid=71975) [ScriptingHelp] Match Whole Words Only by garfieldman on 02-21-2007 at 12:56 AM
Any help for this amateur scripter will be much appreciated... code:so now how do I make it so that the script only replaces "Whatever" with "Test" if "Whatever" is a whole word. Like, so "Whateverasfkl" wouldn't become "Testasfkl"? I've thought that perhaps it's using the split() string (Message.split(" "), but for all I'm worth I can't figure it out. RE: [ScriptingHelp] Match Whole Words Only by CookieRevised on 02-21-2007 at 01:00 AM
Forget using split() and all other things. Study and use the regular expression object... RE: [ScriptingHelp] Match Whole Words Only by garfieldman on 02-21-2007 at 01:04 AM
wow, I overcomplicated things... |