wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes regular expression required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "regular expression required" Watch "regular expression required" New topic
Author

regular expression required

Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 108
Hi,

I want to validate a filename with particular extension like jsp, bmp, png etc and it should allow the names with spaces and numerics.

How to write a regular expression for this.

thanking you.
--raaja. g
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Here's a good learning resource for RegEx: http://www.regular-expressions.info/


luck, db
There are no new questions, but there may be new answers.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Basic ideas:



Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regular expression required
 
Similar Threads
How can I add error handling facilities to this code?
How to check whether name of the File is in a Specifi format??
Doubt on Regular Expression
Alphabets only valitation
Need help on Unique Javascript validation