5.2 ORF Online Help
Select your ORF version:

Table of Contents

Domain Expression Dialog


This section describes the use of the domain expression dialog in ORF.

Using the Domain Expression Dialog

Use the Domain Expression dialog to edit domain expressions. Enter the domain or mask expression to the Domain Expression box and test your expression using the Test domain edit box. If the Test domain box contents match with the mask, a green "Matches" label appears on the right side of the Test Text edit box.

Optionally, you can include a comment with the expression. This comment is logged when a hit appears on this list.

Create an expression with help

By clicking the plus icon button to the right of the expression box, you can invoke a dialog which will generate an expression based on the Expression scope of your choice:

Domain name entered Selected scope Expression generated Matches
domain.com Domain + subdomains ^([^.]+\.)*domain\.com$ The entire domain and its subdomains (both domain.com and subdomain.domain.com)
domain.com Subdomains only *.domain.com Only the subdomains (matches subdomain.domain.com but not domain.com)
domain.com Domain only domain.com Only the domain, but not its subdomains

Wildcard masks and regular expressions

Domains can be specified by the domain itself / wildcard mask or Perl-compatible regular expressions. Switch between the two modes by using the Simple text / wildcard mask and the Regular expression (Perl-compatible) radio buttons.

The wildcard mask supports the * and the ? wildcards.

Wildcard Expressions

Usage and syntax

Wildcards allow you to define masks easily, without having to learn the relatively complex regular expression syntax. Wildcards are special characters which match a wildcard-dependent count of arbitrary characters. ORF supports two wildcard characters:

Wildcard Meaning Example
* Matches zero or more arbitrary characters. *example.org
? Matches zero or one arbitrary character. example?.org

ORF's wildcard masks are case-insensitive. The number of wildcards in a single mask is not limited.

Notes

Domains and subdomains

You can list a domain and its subdomains in a single wildcard expression like *example.org, but this mask also matches for notactuallyanexample.org. If you want to specify example.org and all of its subdomains, use a regular expression like

^([^.]+\.)*domain\.com$

instead.

Internationalized Domain Names

When working with IDNs, make sure to enter these in ASCII ("Punycode") format, e.g. as "xn--e1afmkfd.xn--80akhbyknj4f" instead of "пример.испытание".

Copyright © Vamsoft Ltd. 2024. All rights reserved. Document ID adm-domainexpressions, version 2.