简体   繁体   English

常见PCRE模式的存储库?

[英]A repository of common PCRE patterns?

Does anyone know of a repository for common PCRE patterns? 有人知道通用PCRE模式的存储库吗? I'm not so interested in the PCRE syntax. 我对PCRE语法不太感兴趣。 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! 谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 带有模式的递归PCRE搜索 - Recursive PCRE search with patterns PHP PCRE允许在字符串中嵌套模式(递归) - PHP PCRE allow nested patterns (recursion) in a string 带有条件模式的 pcre_regex,“或”和“与”条件 - pcre_regex with conditional patterns, "or" and "and" conditions 数据库中的常见模式 - Common patterns in a database SKIP-FAIL正则表达式具有多种模式,可在一个PCRE正则表达式中忽略 - SKIP-FAIL regex with multiple patterns to ignore in one PCRE regex PCRE正则表达式匹配模式,直到找到下一个模式 - PCRE Regex Matching Patterns until next pattern is found 在哪里可以找到美国号码的PCRE电话号码格式列表? - Where can I find a list of PCRE phone number patterns for US numbers? 与pcre相比,re2在某些模式下似乎无法给出正确的结果 - re2 does not seem to give correct results for some patterns when compared to pcre Linux中2个包含多行正则表达式的文件与数据模式之间的PCRE模式匹配验证 - PCRE pattern match verification between 2 files containing multi line regex and data patterns in linux PCRE模式数字的正则表达式,后跟任意数量的数字和正斜杠,没有以数字结尾的双斜杠吗? - PCRE Patterns Regular Expression for Digit Followed by any number of digits and forwards slashes no double slashes ending with digit?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM