View Single Post
Old 09-30-2015, 02:16 AM   #1
ni_c
Enthusiast
ni_c began at the beginning.
 
Posts: 40
Karma: 10
Join Date: Jul 2015
Device: none
search & replace regular expression help

Hi, im looking for a regular expression to replace html rules without changing the content inside

so if a documents sets italic rules like

<span class="italic">example one</span>
<span class="italic">example two</span>
<span class="italic">example three</span>

am looking to change them to

<i>example one</i>
<i>example two</i>
<i>example three</i>

and only know a regex search parameter of

<span class="italic">(.*?)</span>

will find all instances, but dknow the replace equivalent to keep the content

so assuming (.*?) is a search only parameter, whats the replace equivalent?

Last edited by ni_c; 09-30-2015 at 02:28 AM.
ni_c is offline   Reply With Quote