Reputation: 319
([a-z]+\w*){5}
Above expression matches every text that:
It doesn't care about whole string length (It matches "abc123456deftjfklajdfkj239")
I want an expression that matches with a text that :
Upvotes: 0
Views: 24
Reputation: 191819
Use anchors to do this:
^[a-z]\w{,4}$
http://rubular.com/r/xdqYajifZa
Upvotes: 2