Class CommonRegex

java.lang.Object
com.itextpdf.pdfcleanup.autosweep.CommonRegex

public class CommonRegex extends Object
This class contains some of the more common regular expressions to be used for redaction. Most of these are copied verbatim from the "regular expression cookbook 2nd edition".
  • Field Details

    • MODERN_ROMAN_NUMERALS_STRICT

      public static Pattern MODERN_ROMAN_NUMERALS_STRICT
    • MODERN_ROMAN_NUMERALS_FLEXIBLE

      public static Pattern MODERN_ROMAN_NUMERALS_FLEXIBLE
    • US_SOCIAL_SECURITY_NUMBER

      public static Pattern US_SOCIAL_SECURITY_NUMBER
    • US_ZIP_CODE

      public static Pattern US_ZIP_CODE
    • US_CURRENCY

      public static Pattern US_CURRENCY
    • CANADA_SOCIAL_SECURITY_NUMBER

      public static Pattern CANADA_SOCIAL_SECURITY_NUMBER
    • CANADA_ZIP_CODE

      public static Pattern CANADA_ZIP_CODE
    • UK_SOCIAL_SECURITY_NUMBER

      public static Pattern UK_SOCIAL_SECURITY_NUMBER
    • UK_ZIP_CODE

      public static Pattern UK_ZIP_CODE
    • UK_CURRENCY

      public static Pattern UK_CURRENCY
    • EU_CURRENCY

      public static Pattern EU_CURRENCY
    • DATE_MM_DD_YYYY

      public static Pattern DATE_MM_DD_YYYY
    • DATE_MM_DD_YYYY_HH_MM_SS

      public static Pattern DATE_MM_DD_YYYY_HH_MM_SS
    • DATE_DD_MM_YYYY

      public static Pattern DATE_DD_MM_YYYY
    • DATE_DD_MM_YYYY_HH_MM_SS

      public static Pattern DATE_DD_MM_YYYY_HH_MM_SS
    • IPV4_ADDRESS

      public static Pattern IPV4_ADDRESS
    • IPV6_ADDRESS

      public static Pattern IPV6_ADDRESS
    • MAC_ADDRESS

      public static Pattern MAC_ADDRESS
    • EMAIL_ADDRESS

      public static Pattern EMAIL_ADDRESS
    • HTTP_URL

      public static Pattern HTTP_URL
  • Constructor Details

    • CommonRegex

      public CommonRegex()