• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

regular expression required

 
Raaja Gotluru
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a good learning resource for RegEx: http://www.regular-expressions.info/
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basic ideas:



Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic