| Constructor and Description |
|---|
RegexMatcher(String regex)
Constructs a new instance of
RegexMatcher. |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
static RegexMatcher |
matches(String regex)
Factory method that creates a new instance of
RegexMatcher. |
protected boolean |
matchesSafely(String item) |
describeMismatch, describeMismatchSafely, matchespublic RegexMatcher(String regex)
RegexMatcher.regex - the regular expression to match. This regular expression
should follow the rules described in the Pattern
class.public void describeTo(org.hamcrest.Description description)
protected boolean matchesSafely(String item)
matchesSafely in class org.hamcrest.TypeSafeMatcher<String>public static RegexMatcher matches(String regex)
RegexMatcher.regex - the regular expression to match. This regular expression
should follow the rules described in the Pattern
class.RegexMatcher.Copyright © 2015. All rights reserved.