<?php $html = '<div class="whatever col-md-5 etc">foo</div>'; $regex = '#col-md-5#'; $html = preg_replace($regex, 'col-md-12', $html); echo $html;
You have javascript disabled. You will not be able to edit any code.