@@ -0,0 +1,584 @@
+package us.kbase.common.test;%0A%0Aimport org.hamcrest.BaseMatcher;%0Aimport org.hamcrest.Description;%0A%0A//http://piotrga.wordpress.com/2009/03/27/hamcrest-regex-matcher/%0Apublic class RegexMatcher extends BaseMatcher%3CString%3E %7B%0A%09private final String regex;%0A%0A%09public RegexMatcher(String regex)%7B%0A%09%09this.regex = regex;%0A%09%7D%0A%0A%09public boolean matches(Object o)%7B%0A%09%09return ((String)o).matches(regex);%0A%09%7D%0A%0A%09public void describeTo(Description description)%7B%0A%09%09description.appendText(%22matches regex=%22 + regex);%0A%09%7D%0A%0A%09public static RegexMatcher matches(String regex)%7B%0A%09%09return new RegexMatcher(regex);%0A%09%7D%0A%7D%0A

Add hamcrest regex matcher