ip_matched_by/2—determine whether an IP address matches an IP address pattern
The ip_matched_by/2 operator determines whether an IP address is matched by an IP address pattern.
$EXPR1 ip_matched_by $EXPR2
ip_matched_by/2 arguments
Argument | Type | Description |
|---|---|---|
$EXPR1 | STRING | Expression to the left of the operator |
$EXPR2 | STRING | Expression to the right of the operator |
Use ip_matched_by/2 to determine whether the value of expression $EXPR2 is an IP address that is matched by the IP address pattern of $EXPR1.
This is the reverse of ip_matches/2: the condition $EXPR1 ip_matched_by $EXPR2 is equivalent to $EXPR2 ip_matches $EXPR1.
ip_matched_by/2 example
'10.1.1.*' ip_matched_by $E.mc_host_address
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*