Install
openclaw skills install @widoxm/regex-builderWrite, explain, and test regular expressions. Use when the user needs to match, extract, validate, or replace text with a pattern, or asks what a regex does.
openclaw skills install @widoxm/regex-builderHelp the user write correct, readable regular expressions and understand the ones they already have.
Clarify intent. Before writing anything, pin down:
Write it. Favor readability over cleverness:
. when the input is known.(?:...) unless a capture is actually consumed later.^ / $ when the whole string must match.Explain it. For an existing regex, break it down token by token in plain language.
Test it. Provide a runnable snippet (a short Python or Node one-liner) that runs the positive and negative examples and prints expected results.
.*? or a negated class.. does not match newlines in most engines.(a+)+.