Replace() Help - 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: Replace() Help (/showthread.php?tid=65100) Replace() Help by Spunky on 08-19-2006 at 12:17 AM
I searched the forums for this, but the code doesnt seem to quite work in the exact way I want code:Thats obviously just an example, but I want to replace ALL "a"s in the message with "XyZ". So I was thinking something like: code:inside a For Loop. I know the code seems pointless, but me and my friend usually have group conversations and still talk in a seperate window as well so the other participants don't have a clue what we're talking about. RE: Replace() Help by Silentdragon on 08-19-2006 at 12:36 AM
code: 1. You made your arrays wrong [ ["Stuff","Stuff2"], ["Stuff3","Stuff4"] ] Thats how to make a multidimensional 2. For replace you need either /texttofind/options or a RegExp object for the first argument. RE: Replace() Help by Spunky on 08-19-2006 at 12:38 AM
Ok, I knew I did it different before lol RE: Replace() Help by Silentdragon on 08-19-2006 at 12:44 AM
it creates a RegExp object for the replace function |