# Use Copilot to generate regex patterns

Category: GitHub Copilot

# Use Copilot to generate regex patterns

Describe a regex in plain English and let Copilot write it

Write a comment like `// regex to match ISO 8601 date strings` and Copilot will generate the pattern. This is one of Copilot's strongest use cases — regex is notoriously difficult to write from scratch and Copilot handles it well.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.