File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Regular expression issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Regular expression issue" Watch "Regular expression issue" New topic
Author

Regular expression issue

Rajive Jha
Greenhorn

Joined: Apr 30, 2011
Posts: 2
I have a requirement where in i have validate a company name which accepts only:
Alphabets
numbers
apostrophe
a space between each word

The name shall always start with a alphabet and if there are multiple words only 1 space shall be allowed.
last letter of the name can also be apostrophe.


Can someone guide me how to write such regex.

Thanks
Rajiv
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regular expression issue
 
Similar Threads
[WAS5]application deployment
inserting string values with an apostrophe
Punctuation is kicking my butt!
What's the most important thing you learnt at school
escape apostrophe in xsl