Advertisement

05.05.2008 at 02:39AM PDT, ID: 23375989
[x]
Attachment Details

Regular expression for validating file-spec wildcards

Asked by peetm in Regular Expressions

Hopefully pretty simple ... could someone please provide me with a reg-exp that can be used to verify that a user has entered a valid file-spec, which may include wildcards [under windows], for example, if they enter ??a*.exe I'd like to continue, but if they were to enter \-/:.exe I'd like to *not* :-).  Note, I'll be using vbscript's regexp object to test for this.Start Free Trial
 
Loading Advertisement...
 
[+][-]05.05.2008 at 05:10AM PDT, ID: 21499361

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.05.2008 at 09:20AM PDT, ID: 21501064

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 02:29AM PDT, ID: 21505817

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Regular Expressions
Sign Up Now!
Solution Provided By: dev2dev
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628