Class MatchRegex

  • All Implemented Interfaces:
    java.util.function.Function<java.lang.String,​java.lang.String>

    public class MatchRegex
    extends java.lang.Object
    implements java.util.function.Function<java.lang.String,​java.lang.String>
    Match any input with a regular expression, and apply the associated regex replacement to it, yielding the value. If no matches occur, then the original value is passed through unchanged. Patterns and replacements are passed as even,odd pairs indexed from the 0th position. Back-references to matching groups are supported.
    • Constructor Summary

      Constructors 
      Constructor Description
      MatchRegex​(java.lang.String... specs)  
    • Method Summary

      Modifier and Type Method Description
      java.lang.String apply​(java.lang.String input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • MatchRegex

        public MatchRegex​(java.lang.String... specs)
    • Method Detail

      • apply

        public java.lang.String apply​(java.lang.String input)
        Specified by:
        apply in interface java.util.function.Function<java.lang.String,​java.lang.String>