跳到内容

BuddyPress XProfile Validate with RegEx

v0.1.2

Tomasz Ostrowski · 2014年3月21日 上架

BuddyPress - Validate XProfile data with PCRE regular expressions.

正在使用
10+
评分
4.5 / 5
累计下载
3,087
最近更新
2015年4月21日
4 条评价需要 WordPress 3.8+已测试到 4.2.39

With this plugin you can define a PCRE regular expression against which data entered
in XProfile fields will be matched.

For example:

  • check webpage field for a correct(-ish) URL or domain name: %^(https?://)?([^ :/]{1,63}\.)+[^ :/.]{2,63}%iu
  • check age field for a sane(-ish) value (0-199): /^1?[0-9]?[0-9]$/
  • check phone field for a sane(-ish) value: /^+?[0-9 -]{7,45}$/
  • check any field for a minimum and maksimum length: /^.{10,100}$/u

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums