What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Request] A simple regular expression function

[Request] A simple regular expression function
Author: Message:
Skarbo
New Member
*


Posts: 7
38 / Male / Flag
Joined: Apr 2008
O.P. RE: [Request] A simple regular expression function
I made a simple function for now (before your post John Anderton ;))

code:
// Move substring to end of string
function moveToEnd(string, substring) {
    var moveToEndI = 0;
    while(string.indexOf(substring) > -1) {
        string = string.replace(substring, "");
        moveToEndI++;
    }
   
    for (;moveToEndI > 0; moveToEndI--)
        string = string + "" + substring;
    return string;
}
04-29-2008 04:52 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Request] A simple regular expression function - by Skarbo on 04-28-2008 at 09:33 AM
RE: [Request] A simple regular expression function - by markee on 04-28-2008 at 11:14 AM
RE: [Request] A simple regular expression function - by John Anderton on 04-28-2008 at 05:40 PM
RE: [Request] A simple regular expression function - by markee on 04-28-2008 at 08:48 PM
RE: [Request] A simple regular expression function - by Matti on 04-29-2008 at 04:43 PM
RE: [Request] A simple regular expression function - by Skarbo on 04-29-2008 at 04:52 PM
RE: [Request] A simple regular expression function - by markee on 04-30-2008 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