regex - regular expression minimum word count -
what regex should use minimum word count? dating website user has describe himself in minimum 50 words. can allow punctuation characters, new lines, question marks, numbers , user types in long has on 50 words.
i have (\b[a-za-z0-9 '-_]+\b.*){50,}
not let new line characters
thanks
if it's website so, don't need regex. though not tagged javascript, suppose you'll find helpful. can is
var elem = document.getelementbyid("id of text input element here"); if(elem.value.split(" ").length < 50) { alert("minimum 50 words please!!"); }
Comments
Post a Comment