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:
markee
Veteran Member
*****

Avatar

Posts: 1622
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: RegExp - exec
code:
if(/\\(.*)\.\w*$/.exec(MyString) !== null){
var FileBase = RegExp.$1;
}

If you are using the file using an ActiveXObject (The Scripting.FileSystemObject specifically) then you can just use .Name property.

This post was edited on 08-22-2007 at 11:30 AM by markee.
[Image: markee.png]
08-22-2007 11:29 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