{"id":32291743,"url":"https://github.com/vitor-mariano/regex-tui","last_synced_at":"2026-01-15T00:36:32.423Z","repository":{"id":322325542,"uuid":"1074496069","full_name":"vitor-mariano/regex-tui","owner":"vitor-mariano","description":"A simple TUI to visualize regular expressions right in your terminal.","archived":false,"fork":false,"pushed_at":"2026-01-10T12:45:54.000Z","size":1126,"stargazers_count":286,"open_issues_count":1,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-10T23:21:26.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vitor-mariano.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"buy_me_a_coffee":"vitormariano"}},"created_at":"2025-10-11T22:46:49.000Z","updated_at":"2026-01-10T01:15:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vitor-mariano/regex-tui","commit_stats":null,"previous_names":["vitor-mariano/regex-tui"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/vitor-mariano/regex-tui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitor-mariano%2Fregex-tui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitor-mariano%2Fregex-tui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitor-mariano%2Fregex-tui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitor-mariano%2Fregex-tui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vitor-mariano","download_url":"https://codeload.github.com/vitor-mariano/regex-tui/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vitor-mariano%2Fregex-tui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:34:46.850Z","status":"ssl_error","status_checked_at":"2026-01-15T00:34:46.551Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-23T03:01:57.281Z","updated_at":"2026-01-15T00:36:32.413Z","avatar_url":"https://github.com/vitor-mariano.png","language":"Go","funding_links":["https://buymeacoffee.com/vitormariano"],"categories":["Go","Table of Contents"],"sub_categories":[],"readme":"# Regex TUI\n\nA terminal user interface (TUI) application for testing and visualizing regular expressions in real-time.\n\n## Features\n\n- Interactive regex editor with live validation\n- RE2 engine by default; [regexp2](https://github.com/dlclark/regexp2) option with partial PCRE compatibility\n- Multi-line text input for testing\n- Visual highlighting of regex matches with alternating colors\n- Real-time feedback as you type the expression\n- Clean and intuitive terminal interface\n- Tab navigation between regex and text inputs\n- Options dialog for toggling global and case-insensitive flags\n\n## Demo\n\n![Demo](assets/demo.gif)\n\n## Installation\n\n### Using go install\n\nThe simplest way to install regex-tui is using `go install`:\n\n```bash\ngo install github.com/vitor-mariano/regex-tui@latest\n```\n\nThis will install the binary to your `$HOME/go/bin` directory. Make sure this directory is in your `PATH`.\n\n### Arch Linux\n\nregex-rui is available on Arch Linux through AUR. You can use [yay](https://github.com/Jguer/yay) or any other AUR helper you prefer:\n\n```bash\nyay -S regex-tui\n```\n\n### Manual Installation with Make\n\nClone the repository and use Make to build and install:\n\n```bash\ngit clone https://github.com/vitor-mariano/regex-tui.git\ncd regex-tui\nmake install\n```\n\nThis will compile the application and install it to `$GOPATH/bin/regex-tui`.\n\n## Requirements\n\n- Go 1.25 or later\n\n## Usage\n\nSimply run the command:\n\n```bash\nregex-tui\n```\n\nThe application will launch in full-screen mode with:\n\n- A regex pattern input field at the top (starts with example pattern `[A-Z]\\w+`)\n- A text input area below (starts with example text \"Hello World!\")\n- Matches highlighted in alternating yellow and blue colors\n\n### Command-Line Options\n\nregex-tui supports several command-line flags to customize the initial state:\n\n#### Available Flags\n\n| Flag            | Shorthand | Description                                       |\n| --------------- | --------- | ------------------------------------------------- |\n| `--regex`       | `-r`      | Initial regex pattern                             |\n| `--text`        | `-t`      | Initial text subject                              |\n| `--empty`       | `-e`      | Start with empty expression and text              |\n| `--no-global`   |           | Disable global flag (match only first occurrence) |\n| `--insensitive` |           | Enable case-insensitive flag                      |\n| `--regexp2`     |           | Use regexp2 engine (partial PCRE compatibility)   |\n\n**Notes:**\n\n- When reading from stdin, the `--text` / `-t` flag cannot be used and will result in an error.\n\n#### Examples\n\n```bash\n# Custom regex with empty text\nregex-tui -e -r \"[A-Z]\\w+\"\n\n# Custom regex and text\nregex-tui -r \"\\d{3}-\\d{4}\" -t \"Call me at 555-1234\"\n\n# Case-insensitive matching (global is enabled by default)\nregex-tui -r \"error\" -t \"Error: invalid input\" --insensitive\n\n# Match only first occurrence\nregex-tui -r \"foo\" -t \"foo bar foo\" --no-global\n\n# Use regexp2 engine with lookahead\nregex-tui -r \"foo(?=bar)\" -t \"foobar foobaz\" --regexp2\n\n# Piped text with custom regex\ncat log.txt | regex-tui -r \"ERROR.*\"\n\n# All flags combined\ncat file.txt | regex-tui -r \"\\w+\" --no-global --insensitive --regexp2\n```\n\n### Keyboard Shortcuts\n\n- **Tab**: Switch between regex input and text input\n- **Ctrl+P**: Open the options dialog to toggle regex flags\n- **Ctrl+O**: Open text content in an external editor (uses `$EDITOR` environment variable)\n- **Esc** or **Ctrl+C**: Exit the application\n\n## Roadmap\n\n- Visualize whitespaces\n- Add mouse support\n\n## Development\n\nOther available make targets:\n\n```bash\nmake run        # Run without installing\nmake build      # Build the binary locally in bin/regex-tui\nmake debug      # Build with debug flags and run locally\nmake clean      # Remove built binary\nmake uninstall  # Remove installed binary from $GOPATH/bin\nmake lint       # Run go vet and go fmt\nmake demo       # Generate demo GIF using vhs\n```\n\n## License\n\nThis project is open source and available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitor-mariano%2Fregex-tui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvitor-mariano%2Fregex-tui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvitor-mariano%2Fregex-tui/lists"}