Text editor tips
Performing non-greedy regular expression matches in vim
If you wanted, say, the '.*' in "<div>.*</h1>" to be non-greedy, you change it to "<div>.*\{-}</h1>"
See Vim Regular Expressions 101
To the extent possible under law, Mary Gardiner
has waived all copyright and related or neighboring rights to
Text editor tips.
This work is published from
Australia.
Last modified: 15 April 2009