0 Replies Latest reply on Aug 7, 2017 12:11 PM by juliec17079280

    Search Redact Patterns.xml

    juliec17079280 Level 1

      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.