Coder's spot
Coding. And more.
Sunday, November 16, 2014
Regex to enforce 3 characters
To enforce three alphabet characters anywhere,
/(.*[a-z]){3}/
i
should be sufficient.
Credits:
Andrew Cheong
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment