W e l c o m e ! » Getting Started » Glossary



Regular expression

Regular expressions, also referred to as regex or regexp, provide a concise and flexible means for matching strings of text, such as particular characters, words, or patterns of characters.

They are used by the wikidot parser, in general, but you can use them in data forms or in mailform module for entry validation.

  • /^(19[5-9][0-9]|20[01][0-9])$/ will match any year from 1950 to 2019
  • /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/ will match any valid email address

See also:

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.