← Back to tools

Software development · Runs in your browser

Regex Tester

Test JavaScript regular expressions against sample text and inspect matches and capture groups.

Files stay in this browser tab.

How to use it

Enter a pattern, JavaScript flags and sample text. Run it to inspect match positions and captures.

Worked example

Pattern: \bERROR\b. Flags: g. Text: INFO ready\nERROR timeout.

What to check

This tool uses JavaScript regular expressions. Expensive patterns run in a bounded worker and are stopped if they take too long.

Build a system for this use case

Log processing development workstation

Example OpenFactory build prompt

Build a useful log processing development workstation on Ubuntu 24.04 LTS amd64, unless the target installer or embedded board requires its explicitly selected OS.

Use Node.js, PCRE2 command-line tools and synthetic application logs. Include only the components this workload needs. Use synthetic sample data and placeholders for site-specific domains, authorized SSH public keys and external integration credentials. Create a non-root operator and keep administrative access private. Never put real credentials, patient records or customer data in the image.

Acceptance checks: test known parsing fixtures, report unmatched lines and distinguish JavaScript and PCRE2 syntax explicitly. Boot the actual artifact and repeat relevant health, persistence and access checks after reboot. Keep hardware-dependent checks pending until the specified equipment is attached.

Deliver the bootable image or reproducible deployment recipe, the software inventory and a test report that separates successful assembly from runtime verification. Ask for missing hardware, storage and access details before making irreversible deployment choices. Do not deploy into production or erase an existing disk without an explicit target.

Your tool inputs and files are not included in the build prompt. Review the draft and press Send in OpenFactory.

Source

MDN Web Docs

OpenFactory · 2026-10-29

Related tools