regex-lab
Reviewed
at commit 39335b2
Test a regular expression against text and see matched ranges.
0 upvotes
Log in to upvote or save- Made by
- Yash Thakker
- Pinned commit
-
39335b2d1e5885573fabbb98ef2dd4c49f011f86 - What we checked
-
Adds a /regex-lab command with a pane where you type a regular expression, flags and a text, and it lists the matching ranges. It only supports simple patterns (no groups, alternation or backreferences, one repetition operator) and has a button to copy the result. It runs locally and sends or stores nothing.
Review details
Static review of the source at the pinned commit; not run. Registers session.start (registers the /regex-lab command), command.run (computes the result and opens the pane) and ui.render for its own Pane. Runtime calls: $.command.register, $.ui.open/invalidate/resolve, $.ui.copy (copies the result text to the clipboard on button press), $.ui.toast. The input is limited to 160 characters of pattern and 2000 of text, flags are restricted to gimsuy, groups, alternation, backreferences and more than one repetition operator are refused to avoid heavy backtracking, and at most 40 matches are shown. It evaluates the user's pattern with the built-in RegExp on the user's own text only. No network, file, process or model calls. No npm dependencies.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: no
- Runs programs on your machine: no
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: no
- Shows something on screen: yes
- Hooked events
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/regex-lab/)