3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = 'asdfnsdfasdjkl <span class="number_box">1.</span> asdfkjsadfasd'; printf (preg_replace('/<span class="number_box">(\d).<\/span>/', '<span class="number_box">$1</span>', $str));
Output for 4.3.0 - 7.1.0
asdfnsdfasdjkl <span class="number_box">1</span> asdfkjsadfasd