Regex TUI
A terminal user interface (TUI) application for testing and visualizing regular expressions in real-time.
Features
- Interactive regex editor with live validation
- RE2 engine by default; regexp2 option with partial PCRE compatibility
- Multi-line text input for testing
- Visual highlighting of regex matches with alternating colors
- Whitespace visualization: spaces (
·) and line breaks (↵) are displayed as visible glyphs - Real-time feedback as you type the expression
- Clean and intuitive terminal interface
- Tab navigation between regex and text inputs
- Options dialog for toggling global and case-insensitive flags
Demo

Installation
Using go install
The simplest way to install regex-tui is using go install:
go install github.com/vitor-mariano/regex-tui@latest
This will install the binary to your $HOME/go/bin directory. Make sure this directory is in your PATH.
Arch Linux
regex-rui is available on Arch Linux through AUR. You can use yay or any other AUR helper you prefer:
yay -S regex-tui
Manual Installation with Make
Clone the repository and use Make to build and install:
git clone https://github.com/vitor-mariano/regex-tui.git
cd regex-tui
make install
This will compile the application and install it to $GOPATH/bin/regex-tui.
Requirements
- Go 1.25 or later
Usage
Simply run the command:
regex-tui