I have this to validate a textarea.
Here is the exp:
var desExp = /^\s*(\w[^\w]*){3}.*$/;
This works fine when typing on one line something like "really nice car".
But when typing into several lines like this:
Got receipt. Brand new! // new line here
Shipping included. // new line here
0704-256568
I think the error comes up because it doesn't like 'enters' or 'new lines'. If so, this must be included in the regexp!
This gives an error because it DOESN'T match the expression. Could anybody tell me why it doesn't match?
Thanks