• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Search Redact Patterns.xml

New Here ,
Aug 07, 2017 Aug 07, 2017

Copy link to clipboard

Copied

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.

TOPICS
Security digital signatures and esignatures

Views

469

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation