regex-patterns

Reference regular expression syntax, patterns, and ReDoS prevention across languages.

6|1|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill regex-patterns-repairyourtech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: regex-patterns
Source: https://github.com/RepairYourTech/cfsa-antigravity/tree/main/.agent/skills/regex-patterns
Command: npx skills add https://github.com/RepairYourTech/cfsa-antigravity --skill regex-patterns-repairyourtech

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to understanding, writing, debugging, and optimizing regular expressions, empowering users to handle complex text pattern matching efficiently.

Core Features & Use Cases

  • Syntax Reference: Detailed explanations of character classes, quantifiers, anchors, groups, and lookarounds.
  • Common Patterns: Ready-to-use regex for emails, URLs, dates, SemVer, and more.
  • ReDoS Prevention: Strategies to avoid catastrophic backtracking and ensure performance.
  • Language Examples: Demonstrations of regex usage in JavaScript, Python, Go, and Rust.
  • Use Case: You need to validate user input for an email address, extract all phone numbers from a log file, or reformat dates in a text document. This Skill provides the patterns and knowledge to do so accurately and efficiently.

Quick Start

Use the regex-patterns skill to find all email addresses within the provided text.

Frequently Asked Questions about regex-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write a regular expression to validate user input like an email address?

To validate user input like an email address, use ready-made regular expression patterns that match standard formats. This reference provides common patterns for emails, URLs, and dates to ensure accurate input validation without writing syntax from scratch.

What is the best way to debug regular expressions for text processing tasks?

The best way to debug regular expressions for text processing is to review detailed syntax references for character classes and lookarounds. This guide facilitates pattern debugging by explaining common syntax errors and optimization techniques across multiple languages.

Can I use the same regular expression syntax across JavaScript, Python, Go, and Rust?

Regular expression syntax varies slightly across JavaScript, Python, Go, and Rust. This reference provides language-specific demonstrations and examples to help you implement pattern matching accurately within your specific programming environment.

Why does my regex pattern cause catastrophic backtracking and how do I prevent ReDoS?

Catastrophic backtracking causes ReDoS when poorly structured regular expressions fail to evaluate efficiently. This reference provides specific ReDoS prevention strategies and optimization techniques to ensure your pattern matching performs safely under heavy load.

How do I extract specific data like phone numbers from a log file using regex?

To extract specific data like phone numbers from a log file, apply text manipulation patterns using quantifiers and anchors. This guide facilitates data extraction by providing the syntax needed to capture precise text segments from larger documents.