com.trendrr.oss
Class Regex

java.lang.Object
  extended by com.trendrr.oss.Regex

public class Regex
extends java.lang.Object

Author:
dustin

Constructor Summary
Regex()
           
 
Method Summary
static boolean contains(java.lang.String input, java.lang.String... regex)
          ps
static boolean contains(java.lang.String input, java.lang.String regex, boolean ignoreCase)
           
static boolean containsIgnoreCase(java.lang.String input, java.lang.String... regex)
           
static java.util.List<java.lang.String> matchAll(java.lang.String input, java.lang.String regex, boolean ignoreCase)
           
static boolean matches(java.lang.String input, java.lang.String regex, boolean ignoreCase)
          returns true if the regex matches the entire input string
static java.lang.String matchFirst(java.lang.String input, java.lang.String regex, boolean ignoreCase)
           
static java.lang.String matchFirst(java.lang.String input, java.lang.String regex, boolean ignoreCase, java.lang.Integer group)
          Matches the first instancec of the regex and returns it, else returns null
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Regex

public Regex()
Method Detail

matchFirst

public static java.lang.String matchFirst(java.lang.String input,
                                          java.lang.String regex,
                                          boolean ignoreCase,
                                          java.lang.Integer group)
Matches the first instancec of the regex and returns it, else returns null

Parameters:
input -
regex -
ignoreCase -
group -
Returns:

matchFirst

public static java.lang.String matchFirst(java.lang.String input,
                                          java.lang.String regex,
                                          boolean ignoreCase)

contains

public static boolean contains(java.lang.String input,
                               java.lang.String regex,
                               boolean ignoreCase)

contains

public static boolean contains(java.lang.String input,
                               java.lang.String... regex)
ps

Parameters:
input -
ignoreCase -
regex -
Returns:

containsIgnoreCase

public static boolean containsIgnoreCase(java.lang.String input,
                                         java.lang.String... regex)

matches

public static boolean matches(java.lang.String input,
                              java.lang.String regex,
                              boolean ignoreCase)
returns true if the regex matches the entire input string

Parameters:
input -
regex -
ignoreCase -
Returns:

matchAll

public static java.util.List<java.lang.String> matchAll(java.lang.String input,
                                                        java.lang.String regex,
                                                        boolean ignoreCase)