I am using mediawiki and I have the text
<div class="list-block"> == 2014 and beyond == <div id="list">My best day </div></div>
I'm using the regular expresion:
%<div class="list-block"[^>]*>\n?<h2>(.+)</h2>\n?(<div id="list">)?(.*)(</div>)?\n?</div>\n</div>%sU
and it isn't working.
It originally had
<div class="list-block">''' 2014 and beyond'''<div id="list">My best day </div></div>
and the
%<div class="list-block"[^>]*>\n?<b>(.+)</b>\n?(<div id="list">)?(.*)(</div>)?\n?</div>\n</div>%sU
which worked great. I switched the <b>
with the <h2>
and now it isn't working.
Any idea what I am doing wrong? (I don't mind removing the <h2>
tags altogether but that doesn't work either).
? How do I format it so I leave out the HTML? What is the correct way to write this?
– LTech Sep 11 '13 at 11:32