开发者

regEx to limix max char length prior to an @ sign

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜