This section describes the use of the domain expression dialog in ORF.
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.
By clicking the 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 |
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.
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.
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
instead.