In .net MVC application I need to regex to validate at least two words in a input and minimum lengths of input should be greater than 5.(special characters allowed are only “.” and no numeric are allowed)
Currently I am using
^([a-zA-Z\.\s]{5,})+$.
It doesn’t work for two words.
It sounds like you might need something like:
This will match 2 words as per your specification and then allow amount of characters thereafter.