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

"Style"
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: "Style"
quote:
Originally posted by deAd
Not really. You can use the String.replace function with a loop.
Although you indeed can, it is also a bit useless to do that. One should indeed use the regular expression syntax for replacing all occurences of a search string. This is even documented like that in the official MS JScript references. ;)


PS: your example code for the loop will produce wrong results in certain cases. And actually shows why you should not use a loop like that to replace all occurences of a string.

This post was edited on 07-13-2006 at 09:42 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
07-13-2006 09:39 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
"Style" - by wlmcrap on 07-11-2006 at 01:23 PM
RE: "Style" - by RaceProUK on 07-11-2006 at 03:15 PM
RE: "Style" - by wlmcrap on 07-11-2006 at 10:18 PM
RE: "Style" - by craig2k5 on 07-11-2006 at 10:56 PM
RE: "Style" - by Joereynolds89 on 07-11-2006 at 11:08 PM
RE: "Style" - by craig2k5 on 07-11-2006 at 11:12 PM
RE: "Style" - by Joereynolds89 on 07-11-2006 at 11:25 PM
RE: "Style" - by Silentdragon on 07-11-2006 at 11:48 PM
RE: "Style" - by wlmcrap on 07-12-2006 at 01:52 AM
RE: "Style" - by cloudhunter on 07-13-2006 at 01:25 AM
RE: "Style" - by wlmcrap on 07-13-2006 at 01:28 AM
RE: "Style" - by ddunk on 07-13-2006 at 01:37 AM
RE: "Style" - by deAd on 07-13-2006 at 01:42 AM
RE: "Style" - by CookieRevised on 07-13-2006 at 09:39 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