A live web tool for testing, understanding, and debugging Lua patterns in your browser.
🔗 Try it here: lua-pattern-tester
Lua patterns are useful, but debugging them can be annoying. This tool helps you test patterns, inspect captures, and understand what each part of a pattern is doing.
- Pattern Testing: Run your Lua patterns and test strings through
match,gmatch,find, andgsub. - Pattern Breakdown: A custom parser that explains what your pattern is actually doing (captures, classes, etc).
- Real-time Highlighting: See matches immediately as you type.
- Save/load: Save/load your patterns and test strings.
- Group Extraction: View exact string and position captures in color-coded cards.
- Responsive Design: A responsive and simple user interface that's easy on the eyes.
- Quick Reference: A small cheat sheet built right into the UI.
- Privacy: Everything runs in your browser. No text or patterns are sent anywhere.
- Enter a Lua pattern.
- Enter a test string.
- Choose the Lua function and inspect the output, captures, and explanation.
Built with React, Vite, and fengari-web (Lua VM). Styling is all custom Vanilla CSS.
I'm always open to feedback or improvements!
- Fork it
- Create a branch (
git checkout -b feature/cool-idea) - Commit and Push
- Open a PR
MIT
