Reputation: 13610
Here it is:
'/^\b[a-z]{0,20}$/i'
I'm trying to match work positions:
"Employee", "Daily Manager"++.
I need to allow A-Za-z
+ spaces and lenght from 0-20
Any help?
Upvotes: 0
Views: 85
Reputation: 3056
[\w ]{0,20}
Furthermore \s
covers all white spaces.
Upvotes: 0