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
The English text of this page is dedicated to the public domain.
Last modified: 25 June 2003