(P1793)

English

format as a regular expression

regex describing an identifier or a Wikidata property. When using on property constraints, ensure syntax is a PCRE

  • regex
  • regular expression

Data type

String

Statements

0 references
When used in property constraint, it should contain PRCE2 regular expression, treated as "full match". For example, "(?i)[a-z]+|\d+|" means that validated string should match /^(?:[a-z]+|d+)$/i or be set to "no value" or "unknown value" (English)
0 references
https://regexper.com/#$1
1 reference
((?:(?:[^?+*{}()[\]\\ (English)
https://regex101.com/?regex=$1
0 references
no value
0 references

Constraints