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
- Type regular expressions, one per line.
- 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.
Related tools
- Wildcard to RegexConvert wildcard patterns with * and ? to regular expressions.
- Regex TesterTest and debug regular expressions with real-time match highlighting.
- Regex EscapeEscape special regex characters for literal string matching.
- Lorem Ipsum GeneratorGenerate placeholder Lorem Ipsum text for design and development.
- Tweet Length CheckerCheck if your text fits within Twitter's 280 character limit.
- Anchor Text Length CheckerVerify anchor text length for SEO optimization guidelines.