File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Regular expression issue
Joined: Apr 30, 2011
Apr 30, 2011 02:32:25
I have a requirement where in i have validate a company name which accepts only:
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.
I agree. Here's the link:
subject: Regular expression issue
escape apostrophe in xsl
inserting string values with an apostrophe
What's the most important thing you learnt at school
Punctuation is kicking my butt!
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015