开发者

regEx to limix max char length prior to an @ sign

开发者 https://www.devze.com 2023-04-04 07:28 出处:网络
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

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

精彩评论

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