$email (parse-spec) function
The e-mail address portion of the word given by parse-spec is returned. (The e-mail address must be in the form X@Y.Z.) If the parse-spec value does not return an IP address, the match specification is not matched. This function is especially useful in a nested specification. (See further section.)
Target string | Parse expression | Return value |
---|---|---|
sendto: x@y.net | $email ($2) | x@y.net |
test sendto: no-reply@AA.com | $email (sendto: *) | no-reply@aa.com |
usr:=a@b.c | $email (usr:=*) | a@b.c |
sendto: X@Z | $email (sendto: *) | No match. The matched text is not an e-mail address. |
sendto: ABC | $email ($2) | No match. The second word of the target string is not an e-mail address |
email: X@y.com value | $email (xxx: *) | No match. There is no match for XXX: * in the target string. |
Related topic
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*