Link to home
Start Free TrialLog in
Avatar of Corey_819
Corey_819

asked on

Using Regular Expression to Validate File in the FileUpload Control

Hello and how is it? Quick question and sorry to bother everyone with this, but I am not finding on the Web what I am looking for. I am using the FileUpload control and I want to make sure the user is going pick a certain file. For example the file maybe File34455_349943 or TextFile498595_93493. There is no extensions so cannot match by the extension. I just want to make sure they are picking files with "File" in the filename. I could care less what else is apart of the filename. I am not sure of the regular expression to use because of the path of the file being inserted into the text box. Thanks :)
ASKER CERTIFIED SOLUTION
Avatar of bennyshoham
bennyshoham

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Corey_819
Corey_819

ASKER

Thanks bennyshohman, I was making this way more complicated then it needed to be. Thanks for your help that worked. ;:)