Mask Content Using Regular Expressions
Regular expressions can mask certain parts of the web page content. The content that matches the regular expression specified in the rule will be masked for the agents.
Syntax for the Rule
<maskContentRE name="Rule_Name" status="ON/OFF ">
<description>Description of the rule</description>
<url>Page_URL</url>
<regex>Regular_Expression</regex>
<mask>Mask_Character</mask>
</maskContentRE>
For example:
<maskContentRE name="maskDOB" status="on">
<description>Masks date of birth pattern</description>
<url>*</url>
<regex><![CDATA[(.*)([0-9][0-9])(-)([0-9][0-9])(-)([0-9][0-9][0-9][0-9])(.*)]]></regex>
<mask>$1##$3##$5####$7</mask>
</maskContentRE>
Before applying the rule:
<span class="someclass" id="someId">05-06-1978</span>
After applying the rule:
<span class="someclass" id="someId">##-##-####</span>