This article gives information on how to add a pre-made US Phone Number policy to the Acquia Optimize scan.
Add a US Phone Number Policy.
From the Acquia Optimize Domain Overview, click Select Domain. The Domain Overview page opens.
Click Open on the same row as the domain name.
The Dashboard for the domain opens.
Click the Global Policies Overview button (mallet icon) on the top menu bar.
Alternatively, click on the header of the Content Policies section.
The Global Policies page opens.
Click Add new policy.
The New Policy page opens.
Click Create your own Policy. See below for examples.
For more information, see the User Guide chapter:
Regex: Use regular expressions to define what should be searched for.
Regular Expressions in source-code exclusions are not 100% compatible with Acquia Optimize Policies. The languages are different (Java and Ruby).
The Policies module can be used to find US phone numbers that are formatted in different ways.
The following example policy will scan to locate numbers that are NOT formatted in the following way: (123) 567-7890. Below are some examples of numbers that will violate the policy:
To create this policy, check the RegEx, clear the Case sensitive box, and then enter the following in the Query field:
(?!\()[0-9]{3}(?!\)).*[0-9]{3}.*[0-9]{4}
For more information, see the User Guide chapter:
Regular Expressions in source-code exclusions are not 100% compatible with Acquia Optimize Policies. The languages are different (Java and Ruby).
If the policy you need is difficult to create, contact Support for assistance.
For more information, see the User Guide chapters:
Regular Expressions in source-code exclusions are not 100% compatible with Acquia Optimize Policies. The languages are different (Java and Ruby).
See Acquia Optimize for Developers for documentation and advanced help files including SDK information for developers.
If this content did not answer your questions, try searching or contacting our support team for further assistance.
Mon Oct 28 2024 18:48:04 GMT+0000 (Coordinated Universal Time)