What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Slang Replacer

Slang Replacer
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: Slang Replacer
quote:
Originally posted by Keikonium
So, a simple fix would be instead of:
code:
sMessage = sMessage.replace(/br/gi,"best reguards");
make it
sMessage = sMessage.replace(/ br /gi," best reguards ");



I think this would be even better:
code:
/(^|\s+)br($|\s+)/igm

And indeed use segosa's idea for the checking method
[Image: 1-0.png]
             
07-16-2006 10:20 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Slang Replacer - by stuartbennett on 07-16-2006 at 09:11 AM
RE: Slang Replacer - by fish-luke on 07-16-2006 at 04:45 PM
RE: Slang Replacer - by 4penguino on 07-16-2006 at 04:49 PM
RE: Slang Replacer - by stuartbennett on 07-16-2006 at 05:19 PM
RE: Slang Replacer - by Keikonium on 07-16-2006 at 06:16 PM
RE: RE: Slang Replacer - by stuartbennett on 07-22-2006 at 06:09 PM
RE: Slang Replacer - by segosa on 07-16-2006 at 09:57 PM
RE: Slang Replacer - by Ezra on 07-16-2006 at 10:20 PM
RE: Slang Replacer - by Silentdragon on 07-16-2006 at 11:11 PM
RE: Slang Replacer - by Keikonium on 07-16-2006 at 11:45 PM
RE: Slang Replacer - by cooldude_i06 on 07-16-2006 at 11:50 PM
RE: RE: Slang Replacer - by Keikonium on 07-16-2006 at 11:58 PM
RE: Slang Replacer - by stuartbennett on 07-17-2006 at 05:47 AM
RE: Slang Replacer - by Ezra on 07-17-2006 at 08:33 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