PracticalVim Tip73 - yszheda/wiki GitHub Wiki

Table of Contents

Tip 73: Use the `\v` Pattern Switch for Regex Search

Return to the top: <>

Find Hex Colors with Magic Search

Using magic search, we have to escape (,),|, and { characters to confer special meaning upon them.

Find Hex Colors with Very Magic Search

Using the `\v` pattern switch, the (,),|, and { characters assume special meaning.

References:

Use the Hex Character Class to Further Refine the Pattern

We can compact the expression further by using the `\x` character class, which stands for [0-9a-fA-F].

References:

⚠️ **GitHub.com Fallback** ⚠️