Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Regular expression issue
posted 4 years ago
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.
It is sorta covered in the
JavaRanch Style Guide
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!