@@ -4,6 +4,7 @@
 import android.text.TextUtils;
 import android.widget.TextView;
 import org.fest.assertions.api.android.view.AbstractViewAssert;
+import java.util.regex.Pattern;
 
 import static org.fest.assertions.api.Assertions.assertThat;
 
@@ -509,6 +510,26 @@ public S isNotEmpty() {
     return myself;
   }
 
+  public S matches(Pattern pattern) {
+    isNotNull();
+    String text = actual.getText().toString();
+    assertThat(pattern.matcher(text).matches())
+        .overridingErrorMessage("Expected text <%s> to match <%s>, but did not.", text,
+            pattern.pattern())
+        .isTrue();
+    return myself;
+  }
+
+  public S doesNotMatch(Pattern pattern) {
+    isNotNull();
+    String text = actual.getText().toString();
+    assertThat(pattern.matcher(text).matches())
+        .overridingErrorMessage("Expected text <%s> to not match <%s>, but did.", text,
+            pattern.pattern())
+        .isFalse();
+    return myself;
+  }
+
   public S containsText(String sequence) {
     isNotNull();
     assertThat(actual.getText().toString()).contains(sequence);