I want to limit the number of allowable characters prior to a @ sign in an email address. Can a regex be used to serve as a max length type control that will flag 65 characters prior to the @ sign in an email address?
(I never saw regex have length f开发者_运维知识库unctions... please fill me in)
A minimum of one and a maximum of sixty-five characters:
/.{1,65}@/
Edit: Check this page under the Limiting Repetition section for more information.
精彩评论