What it does
Pull order IDs of the form TX- followed by exactly five digits out of text, keeping leading zeros.
How to use it
- Load the example or paste your text.
- Check the matches and the counterexample.
- Export the IDs or copy the regex.
Verified example
Example
Text "paid TX-00057; pending TX-00128"
\bTX-\d{5}\b Result: "TX-00057", "TX-00128"
\bTX-\d{5}\b Result: "TX-00057", "TX-00128"
\bTX-\d{5}\b Result: "TX-00057", "TX-00128"
\bTX-\d{5}\b Result: "TX-00057", "TX-00128"
Counterexample
Text "TX-12"
\bTX-\d{5}\b Result: no match
\bTX-\d{5}\b Result: no match
\bTX-\d{5}\b Result: no match
\bTX-\d{5}\b Result: no match
Recorded by running fixture FX-R01 on : rp.js@1 on Node v24.21.0 (V8), v24.21.0, CPython 3.14.2 (Pyodide 314.0.7), PCRE2 10.48, go1.27.1. JavaScript results come from the rp.js@1 core on Node’s V8; your browser runs the same core.
Engines
- The same pattern runs unchanged in all four engines.
Limits
- Only TX- followed by exactly five ASCII digits; other ID shapes need another pattern.