0

I am new to Neovim regex and nothing seems to be working. \b is intepreted litterally and \{ acts like if there's no \. However \. works. What may be wrong? I have noticed that in my browser \ gets repaced by a character described as W bar. I think this happens since I installed nerd fonts. It should be inconsequential but unsure. I am working on a fresh NVChad install even though I am unsure this setup can affect the matter.

1
  • 1
    Could you provide us an example of pattern you are trying and explaining what you want to match? That would very helpful to us to guide you. Commented Feb 23, 2023 at 13:26

1 Answer 1

2

Here are some remarks that could help you.

The words boundaries are matched in Neovim using \< and \> (not using \b like in VisualStudio Code)

To match { you can simply use {

The \{ has a special meaning to specify quantifiers.

\d\{3} match 421 but do not match 42

More information: :help pattern

1
  • Reference: :help pattern
    – D. Ben Knoble
    Commented Feb 23, 2023 at 18:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.