An eclectic mix of thoughts and views on life both in meat-space and in cyber-space, focusing more on the informal observational/inspirational aspect than academic rigour.
Thursday, March 18, 2010
Non-Greedy Searching in Vim
So Regexes are very powerful. Until you want a non-greedy matching in Vim, then you'll go ``what?''.
Here's the incantation: \{-}. That's it. That will non-greedily match whatever preceded it.
No comments:
Post a Comment