Carsten Dominik writes: > Hello, > > Isn't there something wrong with the regexp as the snippet is not > working well when #+END_SOMETHING is followed right away by a new line ? > > I mean > > > #+BEGIN_QUOTE > Test etn ntes thens hsne htsne nste thnes sne thsne htse nthes > ehtse hntse hents > #+END_QUOTE  <--- notice the space > > Blah blah > > > is showing the expected behavior when > > > #+BEGIN_QUOTE > Test etn ntes thens hsne htsne nste thnes sne thsne htse nthes > ehtse hntse hents > #+END_QUOTE <---nothing > > > actually results in > > > #+BEGIN_QUOTE > Test etn ntes thens hsne htsne nste thnes sne thsne htse nthes... > Blah blah > > > There's no problem when the text within is not split across two line, > though.