Skip to main content

Solve a task with regex

Each guide includes input, a pattern, expected results, and the steps to use them in regex101.

TaskFinished result
Verify an AI-generated regexA pattern checked against accepted and rejected cases
Extract order IDs from logsA list of IDs, unit tests, and a JavaScript example
Clean a text file in two stepsA saved pipeline and the completed text
Test several casesPositive, negative, and boundary expectations
Investigate performanceMeasurements for two patterns
Classify order identifiersA format check that rejects incomplete and extended values

If regex101 is new to you, the first-match walkthrough introduces the pattern field, input, flavor, and results. If a pattern already works in regex101 but fails elsewhere, start with runtime differences.