---
name: regex-tool
description: Match and extract text patterns using regular expressions. Use for data validation, text parsing, and pattern-based extraction tasks.
---
# Regex - Regular Expression Matcher
Search text using regular expressions to find, extract, and replace patterns. Supports standard regex syntax with capturing groups, alternation, and quantifiers for advanced text processing.
## Usage
```bash
regex-tool [options] <pattern> <file>
```
## Options
- `-i`: Case-insensitive matching
- `-o`: Show only matched text
- `-r REPLACE`: Replace matches with text
- `-g`: Global match (all occurrences)
## Examples
```bash
regex-tool "\d{4}-\d{2}-\d{2}" dates.txt
regex-tool -i "error|warning" log.txt
regex-tool -r "[REDACTED]" "\b\d{3}-\d{2}-\d{4}\b" data.txt
```
related skills
semantically similar in the cross-vendor index
don't have the plugin yet? install it then click "run inline in claude" again.
+concrete cli examples with real patterns (dates, ssn redaction, log filtering)
+flag set covers common operations (case-insensitive, replace, global)
weaknesses
~no intent, inputs/outputs contract, decision points, or outcome signals - reads as cli reference, not a skill procedure
~zero edge case coverage: no mention of regex syntax errors, file encoding issues, performance on large files, or backtracking problems
~trigger phrases missing entirely; no guidance on when to invoke this skill or what problems it solves in workflow context
~vague on actual behavior (does -r modify file in-place? return stdout? what happens on no matches?)