void () { String source = "<x>z</x>"; try { findMatchesCount(source, "<title>$A$$</title>", HtmlFileType.INSTANCE); fail(); } catch (MalformedPatternException ignore) {} try { findMatchesCount(source, "<x>1<3</x>", XmlFileType.INSTANCE); fail(); } catch (MalformedPatternException ignore) {} try { findMatchesCount(source, "<x'_tag>", XmlFileType.INSTANCE); fail(); } catch (MalformedPatternException ignore) {} }