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:
John Anderton
Elite Member
*****

Avatar

Posts: 3908
Reputation: 80
37 / Male / Flag
Joined: Nov 2004
Status: Away
RE: [Request] A simple regular expression function
Try this. Non regexp method though.
1) Take string (AABBCCDDEE) and char to replace (A)
2) Count instances of char to replace (A)
3) Create target string all chars not char to replace in string ie target string = "BBCCDDEE"
4) Append 'count' number of char to replace (ie As) at the end


Should be simple enough :-)
[

KarunAB.com
]

[img]http://gamercards.exophase.com/459422.png[
/img]
04-28-2008 05:40 PM
Profile E-Mail PM Web 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