Class RegexMatches

java.lang.Object
hipp.com.wappedidpadpro2.RegexMatches

public class RegexMatches
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private static java.util.regex.Matcher matcher  
    private static java.util.regex.Pattern pattern  
  • Constructor Summary

    Constructors 
    Constructor Description
    RegexMatches()  
  • Method Summary

    Modifier and Type Method Description
    static void main​(java.lang.String[] args)  
    static void test()  
    static boolean testLookingAt​(java.lang.String regex, java.lang.String input)  
    static boolean testStringContains​(java.lang.String regex, java.lang.String input)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • pattern

      private static java.util.regex.Pattern pattern
    • matcher

      private static java.util.regex.Matcher matcher
  • Constructor Details

  • Method Details

    • test

      public static void test()
    • testStringContains

      public static boolean testStringContains​(java.lang.String regex, java.lang.String input)
      Parameters:
      regex - may be something like ".*(Color).*" for searching colors
      input - the String holds the searched regex
      Returns:
      true if matcher.matches() or false if no matches
    • testLookingAt

      public static boolean testLookingAt​(java.lang.String regex, java.lang.String input)
    • main

      public static void main​(java.lang.String[] args)