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. RE: RegExp - exec
Mate, it won't go to the last dot after the last slash, it'll go to the first it runs into so it isn't help me much. Do you have any idea how to fix that?

Sorry if I didn't make that clear. I just gave an example, and I tried to say in my starting off sentence.

EDIT: dt helped me on IRC :P

code:
var re = /\\([^\\]*?)\.[^\.]*$/;
var FileBase = re.exec("C:\\David\\eg.png")[1];

This post was edited on 08-22-2007 at 11:28 AM by davidpolitis.
08-22-2007 11:21 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