Regular Expressions 101

Community Patterns

Cfmail replace

0

Regular Expression
PCRE (PHP <7.3)

/
(((<cfmail\s*)\s*(((\s+from *= *("|'))([^"']+)("|'))|((\s+to *= *("|'))([^"']+)("|'))|((\s+replyto *= *("|'))([^"']+)("|'))|((\s+failto *= *("|'))([^"']+)("|'))|((\s+cc *= *("|'))([^"']+)("|'))|((\s+bcc *= *("|'))([^"']+)("|'))|((\s+port *= *("|'))([^"']+)("|'))|((\s+server *= *("|'))([^"']+)("|'))|((\s+subject *= *("|'))([^"']+)("|'))|((\s+type *= *("|'))([^"']+)("|')))+\s*>))
/
g

Description

Replace cfmail with cfsets

Submitted by Akan - 9 years ago