Quantcast
Channel: Adobe Community : Discussion List - Security & Digital Signatures
Viewing all articles
Browse latest Browse all 4693

Search Redact Patterns.xml

$
0
0

I have modified the SearchRedactPatterns.xml to look for zip codes and state (postal) codes. The regex additions work great on every regex test site I've tried, yet nothing works in Adobe except the original ones. Once I've modified the xml (and I am using the one in the Preferences folder), is there anything  special that needs doing?  I've attempted in both Adobe Pro X and Adobe Pro DC and neither locate zip or state codes.  I've included both RE below:

 

ZIP Codes

<set name="Entry6"><str name="displayName"><val>Zip Codes</val></str><str name="regEx" translate="no"><val> (\b\s?)((\d{5}-\d{4})|(\d{5}))(\b)</val></str><str name="examples"><val>This pattern will search for US (Zip and Zip+4).  It allows 5 digits for the first US postal code and requires that the +4, if it exists, is four digits long.

For example:
48222
48222-1746</val></str></set>

 

State Postal Codes

<set name="Entry7"><str name="displayName"><val>State Codes</val></str><str name="regEx" translate="no"><val>   (\b\s?)(:A[LKSZRAEP]|C[AOT]|D[EC]|F[LM]|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEHINOPST]|N[CDEHJMVY]|O[HKR]|P[ARW]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])(\b)</val></str><str name="examples"><val> This pattern matches U.S. state abbreviation codes used by the USPO.


For example:
AL, CA, NY</val></str></set>

 

Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 4693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>