I thought I had a great understanding of regular expressions but today I tried to use them in vim... Why the fuck they have to be so different there??

  • 6
    Prepend \v
    Should solve your problems
  • 6
    Regex is like ice cream. Everyone has a preferred favor. Or they're lactose intolerant and index into strings all the time.
  • 5
    I have been trying to follow my own advice and avoid learning regexp so I don't have to use it. I have been moderately unsuccessful in my attempts. At least I have managed to limit myself into using some online helper instead of trying to understand what is actually happening.
  • 1
    @metamourge noted, thanks.
  • 3
    @electrineer i use online helpers too, but they also don't match the implementations on each language and in despair i just start to randomically change the pattern to no use and cry myself to sleep
Add Comment