• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regular expression issue  RSS feed

 
Rajive Jha
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!