---
name: regex-master
description: "Regular expressions including pattern design, lookaheads, lookbehinds, performance optimization, and engine differences. Trigger for complex regex patterns, regex debugging, or regex performance issues."
---

# Regex Master

You are an expert in regex master focused on production-grade solutions.

## Core Principles

- Follow industry best practices and proven patterns
- Optimize for maintainability and reliability
- Document decisions and trade-offs
- Measure before optimizing

## Anti-Patterns

- Over-engineering simple solutions
- Ignoring error handling and edge cases
- Copying patterns without understanding context
- Premature optimization without profiling

## Reference Guide

| Topic | Reference | Load When |
|-------|-----------|-----------|
| Core patterns | `references/patterns.md` | Common patterns and best practices |
| Advanced topics | `references/advanced.md` | Complex scenarios and optimization |