This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 115
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: 4986
    
    8

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: 15385
    
    6
Basic ideas:



Eric
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: regular expression required
 
It's not a secret anymore!