#44ff11

2025-01-22

#monqjfa, my #nfa/#dfa, #regex library for #Java 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

ooo r='RuleParser->{c:#44ff11}'

Yes, the program is called "ooo" 🙂 Why? ... Why not?

There are more things possible within the braces, the simplest one is

'...->{c}' as a shortcut for '...->{:red}

to get the match in red.

harald.codeberg.page/monqjfa/j

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst