Regular Expressions and Text Processing
[日本語版](../../ja/02-programming/regex-and-text-processing/SKILL.md)
SKILL.md
Full skill instructions
Regular Expressions and Text Processing
Regular expressions are a powerful tool for text processing. This guide covers everything about regex -- from basic syntax, lookahead/lookbehind, and named captures to Unicode support and implementations across different languages.
Target Audience
- Engineers who want to systematically learn regular expressions
- Developers looking to streamline text processing and data cleansing
- Those who want to improve their validation implementations
Prerequisites
- Basic programming experience
- Foundational knowledge of string manipulation
Study Guide
00-basics -- Regex Basics
| # | File | Content |
|---|
01-advanced -- Advanced Features
| # | File | Content |
|---|
02-languages -- Language-Specific Implementations
| # | File | Content |
|---|
Quick Reference
Regex Cheat Sheet:
. -- Any single character
\d \w \s -- Digit / word character / whitespace
[abc] -- Character class
^ $ -- Start / end of line
* + ? -- 0 or more / 1 or more / 0 or 1
{n,m} -- Between n and m times
(...) -- Capture group
(?:...) -- Non-capturing group
(?=...) -- Lookahead
(?<=..) -- Lookbehind
\1 -- Backreference
References
- Friedl, J. "Mastering Regular Expressions." O'Reilly, 2006.
- regular-expressions.info -- Comprehensive reference
- regex101.com -- Online tester
