Regex to Wildcard

Convert simple regular expressions back to wildcard patterns.

Convert simple regular expressions back into wildcard patterns: .* becomes *, . becomes ?, escaped characters become literal and the ^ and $ anchors are dropped. Use it when a tool, a file filter or a search box only accepts * and ? wildcards. Patterns with features that wildcards can't express, such as alternation or repeats, are flagged rather than converted wrongly.

Need the reverse? Wildcard to Regex

Common use cases

  • Turn a regex filter into a file-search wildcard
  • Simplify patterns for users who don't know regex
  • Move rules between tools with different pattern syntax

How to use

  1. Type regular expressions, one per line.
  2. Copy the wildcard versions.

FAQ

Why can't every regex be converted?

Wildcards only have * and ?. Things like (a|b), \d+ or {2,3} have no wildcard equivalent.

How do I go the other way?

Use the wildcard to regex converter.