[wordpress插件] BuddyPress XProfile Validate with RegExBuddyPress XProfile通过RegEx验证

wordpress 插件 文章 2020-03-13 09:10 477 0 全屏看文

AI助手支持GPT4.0

评分
90
描述

With this plugin you can define a PCRE regular expression against which data entered

使用此插件,您可以定义输入数据的PCRE正则表达式

in XProfile fields will be matched.

在XProfile字段中将被匹配。

For example:

例如:

    • check webpage field for a correct(-ish) URL or domain name: %^(https?://)?([^ :/]{1,63}\

    • 检查网页字段以获取正确的(-ish)URL或域名:%^(https?://)?([^:/] {1,63} \

      .)+[^ :/.]{2,63}%iu

    • 。)+ [^:/。] {2,63}%iu

    • check age field for a sane(-ish) value (0-199): /^1?[0-9]?[0-9]$/

    • 检查 age 字段以获取合理的(-ish)值(0-199): / ^ 1?[0-9]?[0-9] $ /

      >

    • >

    • check phone field for a sane(-ish) value: /^+?[0-9 -]{7,45}$/
    • 检查电话字段以获取合理的(-ish)值: / ^ +?[0-9-] {7,45} $ /

    • check any field for a minimum and maksimum length: /^.{10,100}$/u
    • 检查任何字段的最小长度和最短长度: / ^。{10,100} $ / u

    You can also configure a message to show when a field data does not validate.

    您还可以配置一条消息,以在字段数据无效时显示。

下载地址
https://downloads.wordpress.org/plugin/buddypress-xprofile-validate-with-regex.zip
-EOF-

AI助手支持GPT4.0