Home > DeveloperSection > Forums > Regular expression to match maximium of five words
Pravesh Singh

Total Post:412

Posted on    August-27-2014 1:47 AM


 1 Reply(s)
 926  View(s)
Rate this:

I have a regular expression


which validates that the word contains alpha-numeric characters and few special characters and length should not be more than 5 characters.

How do I make this regular expression to accept a maximum of five words matching the above regular expression.

Sumit Kesarwani

Total Post:378

Posted on    August-27-2014 3:01 AM

Hi Pravesh, 

try this:


Don't want to miss updates? Please click the below button!

Follow MindStick