What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Replacing Text Using Scripts (I think I'm dumb lol)

[Help] Replacing Text Using Scripts (I think I'm dumb lol)
Author: Message:
Pai
Full Member
***

w00t !

Posts: 203
Reputation: 2
– / Male / –
Joined: Sep 2003
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol)
Then you did something wrong, because it does work ;)

Test case:
code:
    var str = "aaaaaaaaaaaaaaaaaaa"
    var str1 = str.replace("a","A");
    Debug.Trace(str1);
    var str2 = str.replace(/a/g,"A");
    Debug.Trace(str2);

returns:
code:
Aaaaaaaaaaaaaaaaaaa
AAAAAAAAAAAAAAAAAAA


-----------------------
to ignore links do something like
code:
if (!str.match('www') && !str.match('http')) { // it's not a link }

This post was edited on 07-12-2006 at 05:56 PM by Pai.
07-12-2006 05:48 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Keikonium on 07-11-2006 at 10:51 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by noroom on 07-11-2006 at 10:53 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-11-2006 at 11:11 PM
RE: RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by jmccarroll on 07-11-2006 at 11:17 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Keikonium on 07-11-2006 at 11:16 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-11-2006 at 11:17 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Keikonium on 07-11-2006 at 11:33 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-11-2006 at 11:37 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Nathan on 07-11-2006 at 11:41 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Silentdragon on 07-11-2006 at 11:46 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-11-2006 at 11:57 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by aNILEator on 07-12-2006 at 07:26 AM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by aNILEator on 07-12-2006 at 07:29 AM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-12-2006 at 01:05 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by noroom on 07-12-2006 at 01:31 PM
RE: RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-12-2006 at 01:37 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Keikonium on 07-12-2006 at 01:47 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Pai on 07-12-2006 at 01:55 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-12-2006 at 02:25 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Pai on 07-12-2006 at 05:48 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by aNILEator on 07-12-2006 at 06:22 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Silentdragon on 07-12-2006 at 07:25 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-12-2006 at 07:51 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by segosa on 07-12-2006 at 09:35 PM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Pai on 07-13-2006 at 12:43 AM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by segosa on 07-13-2006 at 08:54 AM
RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by Joereynolds89 on 07-13-2006 at 09:57 AM
RE: RE: [Help] Replacing Text Using Scripts (I think I'm dumb lol) - by segosa on 07-13-2006 at 10:04 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On