I want to replace with For example I have this one:
<textarea type="text" style="height: 30px; width: 144px;" name="a" id="a" value=""/>
and I want it to become:
<textarea type="text" style="height: 30px; width: 144px;" name="a" id="a" value=""></textarea>
I using this regular expression:
preg_replace('!<textarea.*/>!', '<textarea.*></textarea>', $text);
but is not working. I am quite new to regular expressions so it would be very nice if someone could help me with this. Thanks in advance