Class RegexFieldCleaner

  • All Implemented Interfaces:

    public class RegexFieldCleaner
    extends java.lang.Object
    implements FieldCleaner
    A field cleaner that removes all occurrences of a given regex. Created: Nov 26, 2004
    $Id:,v 1.1 2007/10/22 21:37:44 mccallum Exp $
      • Field Summary

        Modifier and Type Field Description
        static java.lang.String REMOVE_PUNCT  
      • Method Summary

        All Methods Instance Methods Concrete Methods 
        Modifier and Type Method Description
        java.lang.String cleanFieldValue​(java.lang.String rawFieldValue)
        Returns a post-processed version of a field.
        • Methods inherited from class java.lang.Object

          clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RegexFieldCleaner

        public RegexFieldCleaner​(java.lang.String regex)
      • RegexFieldCleaner

        public RegexFieldCleaner​(java.util.regex.Pattern regex)
    • Method Detail

      • cleanFieldValue

        public java.lang.String cleanFieldValue​(java.lang.String rawFieldValue)
        Description copied from interface: FieldCleaner
        Returns a post-processed version of a field.
        Specified by:
        cleanFieldValue in interface FieldCleaner
        A processed string