Regex Generator from Examples
Paste sample strings and get a regular expression that matches them, with fixed parts kept and changing parts generalised, ready for JS, Python or Java. Free.
Runs in your browser · files never uploaded 100% free
Related tools
Regex ExplainerBreak a regular expression into plain-English parts, token by token, with groups, classes, quantifiers, lookarounds and flags explained. Free, in your browser.Glob Pattern TesterTest glob patterns like src/**/*.ts against a list of file paths, with ** folders, {a,b} braces, ranges and !exclusions, plus the regex for each. Free.Wildcard to Regex ConverterTurn simple * and ? wildcard patterns, or SQL LIKE % and _ patterns, into escaped regular expressions for JavaScript, Java or Python. Free and in your browser.Grep Command BuilderBuild grep or ripgrep commands with case, whole word, recursive, include and exclude options, and see what every flag does. Free, in your browser.Sed Command GeneratorGenerate sed commands to find and replace, delete or insert lines, with escaping done for you, GNU or macOS in-place editing and a live preview. Free.Awk Command GeneratorBuild awk one-liners to print columns, total, average, count or find unique values, with filters and separators, and preview them on your data. Free.