format as a regular expression (P1793)
Jump to navigation
Jump to search
regex describing an identifier or a Wikidata property. When using on property constraints, ensure syntax is a PCRE
- regex
- regular expression
- allowed values
- regexp
Language | Label | Description | Also known as |
---|---|---|---|
English | format as a regular expression |
regex describing an identifier or a Wikidata property. When using on property constraints, ensure syntax is a PCRE |
|
Data type
String
Statements
When used in property constraint, it should contain PCRE2 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
0 references
no value
0 references
Constraints
0 references
((?:(?:[^?+*{}()[\]\\|]+|\\.|\[(?:\^?\\.|\^[^\\]|[^\\^])(?:[^\]\\]+|\\.)*\]|\((?:\?[:=!]|\?<[=!]|\?>)?(?1)??\)|\(\?(?:R|[+-]?\d+)\))(?:(?:[?+*]|\{\d+(?:,\d*)?\})[?+]?)?|\|)*)
0 references
0 references
0 references
0 references
(?!.*A-z).+
[A-z] should not be used, consider using [A-Za-z] for basic Latin letters (English)
0 references