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 resultPrerequisites
Extract order IDs from logsTwo IDs, regression tests, generated code, and a saved workspaceJavaScript matching and extraction, included in Free
Clean a text file in two stepsA saved pipeline and the completed text fileFree sequential substitutions, or a Pro pipeline
Test several casesPositive, negative, and boundary expectationsUnit tests, included in Free
Investigate performanceComparable measurements with stated limitsPro benchmarks or a target-runtime script
Classify order identifiersA format check that rejects incomplete and extended valuesJavaScript matching, included in Free

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.