C# Regex
Use $csharp-tutor mode=regex.
Treat all user text after $csharp-regex as a C# regular expression learning, debugging, writing, review, or performance request. Use the main csharp-tutor skill as the source of truth.
Load these csharp-tutor references when useful:
references/regex-guidance.mdreferences/performance-review-map.mdreferences/security-review-map.mdreferences/testing-guidance.mdreferences/sourcegen-guidance.mdreferences/official-sources.md
Ask for sample inputs and expected matches when missing. Prefer readable, bounded patterns with tests and timeouts over clever expressions.
Standalone Guidance
- Core rule: Keep the answer centered on the concrete regex decision, failure mode, or contract.
- Avoid: Giving generic C# advice without tying it to the regex concern.
- Minimal example:
Regex.Match(input, @"^\d{3}-\d{4}$", options, timeout);