简体   繁体   中英

A repository of common PCRE patterns?

Does anyone know of a repository for common PCRE patterns? I'm not so interested in the PCRE syntax. I am more interested in a good set of rules for what's commonly allowed in fields such as:

  • Email address
  • Password
  • First name
  • Last name
  • Web site
  • Post code
  • etc...

I realise that there are a lot of factors here. Some fields, such as 'email address' or 'password', are subject to standards. Others, such as 'first name' or 'password' are not subject to standards, but do have common conventions. Furthermore, some fields, such as 'post code', vary with region.

I can go ahead and read up on standards, try to create exhaustive lists of variants, etc, but is there some place where this has already been done?

Thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM