void () { String in = """ <a> <b>liberation</b> <c>remuneration</c> </a>"""; String what = "<'tag:[regex( c )]>'_text</'tag>"; String by = ""; String expected = """ <a> <b>liberation</b> </a>"""; assertEquals(expected, replace(in, what, by)); }