Package hipp.com.wappedidpadpro2
Class RegexMatches
java.lang.Object
hipp.com.wappedidpadpro2.RegexMatches
public class RegexMatches
extends java.lang.Object
-
Field Summary
-
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)
-
Field Details
-
Constructor Details
-
RegexMatches
public RegexMatches()
-
-
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 colorsinput
- 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)
-