I have an html table with some headers:
<th>Header01</th>
...
<th>Different Header 20</th>
I'd like to find and replace everything between the first >
and the next <
with {{ }}
:
<td>{{ }}</td>
...
<td>{{ }}</td>
I know I can use :s/\%Vth/td/g
to replace all the th
with td
, but how can I use Vim's regex to find and replace everything between >
and <
with {{ }}
?
I have attempted the following without success
:s/\%V\>(.*?)\</{{ }}/g