Wikidata:Property proposal/regular expression syntax
Jump to navigation
Jump to search
regular expression syntax[edit]
Originally proposed at Wikidata:Property proposal/Generic
Represents | regular expression (Q185612) |
---|---|
Data type | Item |
Domain | as a qualifier to format as a regular expression (P1793), file format identification pattern (P4152) and other properties whose value is a regular expression (Q185612) |
Allowed values | subclass of (P279) of regular expression (Q185612) |
Example | (Portable Network Graphics, version 1.0 (Q27229565) file format identification pattern (P4152) "(?s)\A\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR") → Python version 3 regular expression (Q35191772) |
See also | format as a regular expression (P1793), file format identification pattern (P4152), syntax clarification (P2916) |
- Motivation
There are various syntaxes and variants of patterns commonly known as regular expression (Q185612). Currently there is no way to express on Wikidata which syntax/variant applies to a particular pattern stated as a value to properties such as format as a regular expression (P1793) and file format identification pattern (P4152). Pixeldomain (talk) 03:05, 7 August 2017 (UTC)
- Discussion
- Maybe "criterion used" or "as".
--- Jura 05:29, 7 August 2017 (UTC) - Comment The definition of programming language (Q9143) is general enough that it could potentially allow programmed in (P277) to be used for regular expression (Q185612). The question is whether a distinct/separate property justified, or could an existing more generic property be reused for this purpose. Pixeldomain (talk) 06:05, 7 August 2017 (UTC)
- Support. I support the creation of this property. YULdigitalpreservation (talk) 16:54, 9 August 2017 (UTC)
- Support The default regex variant used on Wikidata is Perl Compatible Regular Expressions (Q125267), @Pixeldomain: if you were wondering. Mahir256 (talk) 22:41, 9 August 2017 (UTC)
- @Pixeldomain, Jura1, YULdigitalpreservation, Mahir256: Done ArthurPSmith (talk) 15:20, 22 September 2017 (UTC)