Quickstart

rgx - Regex101 for Terminal

javimosch Updated

File contents

rgx - Regex101 for Terminal

Overview

rgx is regex101 for the terminal. Real-time matching, 3 engines, capture groups, replace mode, syntax highlighting, plain-English explanations, undo/redo, mouse support.

Quick Start

Passthrough to rgx CLI

sc rgx _ <rgx-args>

Key Features

  • Real-time Matching: See matches as you type
  • 3 Engines: Support for multiple regex engines
  • Capture Groups: Visualize capture groups
  • Replace Mode: Test regex replacements
  • Syntax Highlighting: Color-coded regex patterns
  • Plain-English Explanations: Understand your regex
  • Undo/Redo: Navigate your regex history
  • Mouse Support: Interactive terminal UI

Installation

cargo install rgx

Usage Examples

Start rgx

rgx

With initial pattern

rgx --pattern "test"

With initial test string

rgx --string "hello world"

Specific engine

rgx --engine rust

Notes

  • Run rgx --help to see all available options
  • Supports Rust, PCRE2, and RE2 engines

javimosch/supercli/tree/main/plugins/rgx/skills/quickstart commit d014ccc341

Frequently asked questions

npx skillmds@latest add javimosch/quickstart-129