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

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
32 / Male / Flag
Joined: Apr 2004
RE: [Request] A simple regular expression function
Looks like some very untested code, yes. I can't seem to get it working whatsoever, it's crashing my Messenger every time I try to run this (infinite loop?):
code:
var StringObj = "Some shit with A's.";
while(RegExp(".*A+[^A]+A*$","gi").exec(StringObj)){
    StringObj = StringObj.replace(/(.*?)(A*)(.*)/i,"$1$3$2");
}
Could you try to find some time to get it working in some way? :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
04-29-2008 04:43 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