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

RegExp - exec
Author: Message:
davidpolitis
Full Member
***


Posts: 371
Reputation: 16
Joined: Aug 2006
O.P. RegExp - exec
I need some help with RegExp, for some reason the code bellow isn't working. Can someone please help me?

The code is basically meant to turn C:\David\eg.png to eg

code:
var re = new RegExp(".*\\(.*)\\.");
var FileBase = re.exec(MyString)[1];

It's simply just plain not working at all! :S

Thanks in advance,
David.
   

This post was edited on 08-22-2007 at 11:10 AM by davidpolitis.
08-22-2007 10:35 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
RegExp - exec - by davidpolitis on 08-22-2007 at 10:35 AM
RE: RegExp - exec - by phalanxii on 08-22-2007 at 11:14 AM
RE: RegExp - exec - by davidpolitis on 08-22-2007 at 11:21 AM
RE: RegExp - exec - by markee on 08-22-2007 at 11:29 AM
RE: RE: RegExp - exec - by davidpolitis on 08-22-2007 at 11: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