Ontify

⌘S

Format as a Regular Expression

Regex

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

Statements about Format as a Regular Expression

Instance Of

Wikidata Property to Indicate a Constraint
Wikidata Property with Datatype String that Is Not an External Identifier
Wikidata Property for an Identifier

Icon

Image 1

Property Constraint

Single-Value Constraint
Separator
:
Country
Separator
:
Has Characteristic
Separator
:
Reason for Preferred Rank
Separator
:
Reason for Deprecated Rank
Separator
:
Regular Expression Syntax
Format Constraint
Format as a Regular Expression
:((?:(?:[^?+*{}()[\]\\|]+|\\.|\[(?:\^?\\.|\^[^\\]|[^\\^])(?:[^\]\\]+|\\.)*\]|\((?:\?[:=!]|\?<[=!]|\?>)?(?1)??\)|\(\?(?:R|[+-]?\d+)\))(?:(?:[?+*]|\{\d+(?:,\d*)?\})[?+]?)?|\|)*)
Allowed Qualifiers Constraint
Property
:
Country
Property
:
Has Characteristic
Property
:
Reason for Preferred Rank
Property
:
Reason for Deprecated Rank
Property
:
Regular Expression Syntax
Property
:
Syntax Clarification
Property
:
Constraint Clarification
Format Constraint
Format as a Regular Expression
:.+
Constraint Status
:
Mandatory Constraint
Allowed-Entity-Types Constraint
Item of Property Constraint
:
Wikibase Item
Item of Property Constraint
:
Wikibase Property
Subject Type Constraint
Class
:
Wikidata Property with Datatype String that Is Not an External Identifier
Class
:
Wikidata Property for an Identifier
Class
:
Wikidata Property to Link to Commons
Class
:
Identifier
Relation
:
Instance or Subclass Of
Property Scope Constraint
Property Scope
:
As Main Value
Property Scope
:
As Qualifier
Format Constraint
Format as a Regular Expression
:(?!.*A-z).+
Constraint Clarification
: [A-z] will match some punctuation characters as well. Use [A-Za-z] instead if this should match uppercase and lowercase a to z.
Format Constraint
Format as a Regular Expression
:(?!.*\\/).+
Constraint Clarification
: Forward slashes should not be escaped.

Described at URL

https://www.pcre.org/current/doc/html/

Related Property

Regular Expression Syntax
Syntax Clarification
Powered byWikidataWikidata
Format as Language Specific Regular Expression
Wikidata Property Related to Classification Schemes
Class
:
Wikidata Property Related to Classification Schemes
Applies if Regular Expression Matches
Property
:
Applies if Regular Expression Matches
Class
:
Unique Identifier
Smithsonian Trinomial Format Regex