MentaRegex

Compare Revisions

Ignore whitespace Rev 9 → Rev 10

/trunk/src/test/java/org/mentaregex/RegexTest.java
95,6 → 95,16
 
check(matches, "11", "22", "33");
}
@Test
public void testSpecialCase() {
String s = "aaaaaa [tag]house[/tag] bbbbb [tag]home[/tag] cccccccccccc";
String[] m1 = Regex.match(s, "/\\[tag\\](.*?)\\[\\/tag\\]/");
assertEquals("house", m1[0]);
}
 
@Test
public void testSubstitution() {