Considering the node name@domain.com/instance
, for each routing rule below, it should resolve to the following nodes:
Resolve only to the exact node address.
Expression:
^(?<name>name)(?<domain>@domain\.com)(?<instance>\/instance)$
Valid nodes:
name@domain.com/instance
Resolve to the exact node address or the address without the instance.
Expression:
^(?<name>name)(?<domain>@domain\.com)(?<instance>\/instance|)?$
Valid nodes:
name@domain.com/instance
name@domain.com
Resolve to addresses with the same domain without the instance or with the same instance.
Expression:
^(?<name>[^@\/]+)(?<domain>@domain\.com)(?<instance>\/instance|)?$
Valid nodes:
name@domain.com/instance
name@domain.com
other-name@domain.com/instance
other-name@domain.com
Resolve to addresses with the same domain and subdomains without the instance or with the same instance.
Expression:
^(?<name>[^@\/]+)(?<domain>@([^@\/]+\.)?domain\.com)(?<instance>\/instance|)?$
Valid nodes:
name@domain.com/instance
name@domain.com
other-name@domain.com/instance
name@sub.domain.com/instance
name@sub.domain.com
other-name@sub.domain.com/instance
Resolve to addresses with any instance value.
Expression:
^(?<name>name)(?<domain>@domain\.com)(?<instance>\/[^@\/]+)$
Valid nodes:
name@domain.com/instance
name@domain.com/other-instance
Resolve to the address without the instance or with any instance value.
Expression:
^(?<name>name)(?<domain>@domain\.com)(?<instance>\/[^@\/]+)?$
Valid nodes:
name@domain.com/instance
name@domain.com
name@domain.com/other-instance
Resolve to addresses with the same domain without the instance or with any instance.
Expression:
^(?<name>[^@\/]+)(?<domain>@domain\.com)(?<instance>\/[^@\/]+)?$
Valid nodes:
name@domain.com/instance
name@domain.com
other-name@domain.com/instance
name@domain.com/other-instance
Resolve to addresses with the same domain and subdomains without the instance or with any instance.
Expression:
^(?<name>[^@\/]+)(?<domain>@([^@\/]+\.)?domain\.com)(?<instance>\/[^@\/]+)?$
Valid nodes:
name@domain.com/instance
name@domain.com/other-instance
name@domain.com
other-name@domain.com/instance
other-name@domain.com/other-instance
name@sub.domain.com/instance
name@sub.domain.com/other-instance
name@sub.domain.com
other-name@sub.domain.com/instance
other-name@sub.domain.com/other-instance