Complex search and replace

20 views
Skip to first unread message

TheAnt

unread,
Feb 2, 2018, 12:44:21 PM2/2/18
to TextWrangler Talk
Hello, this is my first question here. Nice to meet you.
Is it possible in TextWrangler to search all the strings that start with a tag like <span class="bold char-style-override-1"> and finish with </span> , where the part between is different:
<span class="bold char-style-override-1">A questo proposito si parla di un Ente Autonomo che gestisca la situazione.</span>
<span class="bold char-style-override-1">Ti sei fatto un’idea sull’annosa polemica del “ritorno per la città” circa il GP?</span>
<span class="bold char-style-override-1">La soluzione nel 1995 era stata trovata, era a portata di mano…</span>
...
I need to change them in
<strong>A questo proposito si parla di un Ente Autonomo che gestisca la situazione.</strong>
<strong>Ti sei fatto un’idea sull’annosa polemica del “ritorno per la città” circa il GP?</strong>
<strong>La soluzione nel 1995 era stata trovata, era a portata di mano…</strong>
...

Thanks

Christopher Bort

unread,
Feb 2, 2018, 1:03:26 PM2/2/18
to textwr...@googlegroups.com
TextWrangler does what you're asking quite well with its grep
search (regular expressions). You'll want to read Chapter 8 in
the User Manual to get started with it.
--
Christopher Bort
<top...@thehundredacre.net>

Reply all
Reply to author
Forward
0 new messages