Skip to main content
edited tags
Link
Rich
  • 32.6k
  • 4
  • 74
  • 141
Source Link

Find and replace only between searched patterns

Editing large HTML file. Would like to do something like:

:/<blockquote>/,/<\/blockquote>/s/^\(\s\s\+\)\(<[^>].\{-}>\)/\1  \2/g

So basically just trying to indent all between the tag lines. I thought this was possible, but perhaps I mangled the syntax.

Thanks,