Harald<p><a href="https://nrw.social/tags/monqjfa" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>monqjfa</span></a>, my <a href="https://nrw.social/tags/nfa" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nfa</span></a>/#dfa, <a href="https://nrw.social/tags/regex" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>regex</span></a> library for <a href="https://nrw.social/tags/Java" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Java</span></a> has a grep-like program as an example of the use of the library. This got a new feature resembling grep's --color option to show matches with colors, using ANSI escape sequences</p><p>ooo r='RuleParser->{c:<a href="https://nrw.social/tags/44ff11" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>44ff11</span></a>}'</p><p>Yes, the program is called "ooo" 🙂 Why? ... Why not?</p><p>There are more things possible within the braces, the simplest one is </p><p> '...->{c}' as a shortcut for '...->{:red}</p><p>to get the match in red.</p><p><a href="https://harald.codeberg.page/monqjfa/javadoc/monq/Oooo.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">harald.codeberg.page/monqjfa/j</span><span class="invisible">avadoc/monq/Oooo.html</span></a></p>