Regex and Fixed Strings/Use Unicode-aware classes

Search for letters with Unicode-aware semantics.

Section: PCRE2 features

Use Unicode-aware classes

bash
bash
rg '\p{L}+' docs/
Explanation

Useful for multilingual repos and documentation sets.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing PCRE2 features
Use the PCRE2 engine
Turn on advanced regex features such as look-around.
OpenIn sheetbashsame section
Use a backreference
Match repeated text with PCRE2.
OpenIn sheetbashsame section
Use look-ahead assertions
Match only when text is followed by another fragment.
OpenIn sheetbashsame section
Search across line boundaries
Allow regexes to match newlines.
OpenIn sheetbashsame section
Match one of several patterns
Search for either of two words.
OpenIn sheetbash2 tag match
Match whole words only
Avoid partial matches inside larger identifiers.
OpenIn sheetbash2 tag match