Skip to content
Treasure-cdPublic

About

A real-time regex playground that breaks down your patterns into bite-sized, understandable pieces.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Regexium: A Precision Regular Expression Visualization Tool 🎯

Regexium is a dedicated, small-scale regular expression playground engineered to enhance understanding and debugging. It is built using the modern Vue 3 framework and TypeScript, prioritizing stability and type safety.

🌟 Key Features and Differentiators

Regexium is designed to demystify complex patterns through robust visualization and real-time feedback:

  • Real-time Pattern Highlighting: Matches in your test string are highlighted instantaneously as you type, providing immediate visual feedback on pattern validity and scope.
  • Interactive Token Explanations: Hover over any component of your regular expression to receive an immediate, almost detailed explanation of its function (its "token").
  • Structured Visual Breakdown: The input regex is segmented into distinct, color-coded tokens, transforming an otherwise cryptic string into an understandable, structured visual component.
  • Comprehensive Sidebar Analysis: A dedicated sidebar provides a full, aggregated breakdown of all patterns and their meanings present within your regular expression.

🛠️ Tech Stack

This project leverages a contemporary and efficient stack:

  • Vue 3 (Composition API): Utilized for reactive, scalable, and modular component development.
  • TypeScript: Employed to ensure a high degree of code integrity and robust type checking throughout the application.
  • Vite: Selected as the build tool for its exceptional speed.

🚀 Getting Started

Follow these instructions to set up and run Regexium locally:

Prerequisites

You must have Node.js installed on your machine.

Installation

  1. Clone the Repository:

    git clone [https://github.com/your-username/regexium.git](https://github.com/your-username/regexium.git)
  2. Navigate and Install Dependencies:

    cd regexium
    npm install
  3. Launch the Application:

    npm run dev
  4. Access: Open your web browser and navigate to the address provided by Vite.

✍️ Usage Instructions

Regexium is designed for intuitive use:

  1. Enter your Regular Expression: Input your pattern into the top field. You may use the full /pattern/flags format or the pattern alone.
  2. Provide Test Text: Input the text you wish to match into the larger text area below.
  3. Analyze Results: Observe the real-time matching and highlighting.
  4. Inspect Pattern Components: Hover over individual regex tokens to view their specific role.
  5. Review the Sidebar: Consult the sidebar for a synthesized, overall explanation of the patterns used.

📝 Planned Enhancements (To-Do)

The following features are slated for future development:

  • Integration of a Flag Selector UI to streamline the selection of regex flags (e.g., g, i, m).
  • Expansion of the explanation dictionary to cover more complex and advanced patterns.
  • Inclusion of preset patterns for common use cases to serve as learning examples.

About

A real-time regex playground that breaks down your patterns into bite-sized, understandable pieces.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages