msg:body_replace

March 26, 2020 Contributors

Name

msg:body_replace — Streaming interface to a PCRE replacement of a message body (minus headers)

Synopsis

msg:body_replace(pattern, replacement);

pattern: string
replacement: string

Description

Streaming interface to a PCRE replacement of a message body (minus headers). This function has the same semantics as msg:body_match. If no match is found, false is returned.

Enable this function with the statement require('msys.extended.message');.

See Also

msg:body_match