<?php $value = "'abcd'や'1234'のなどの色んなパターン"; echo preg_replace( "/'(.*?)'/", "<span class=\"aaa\">'$1'</span>" , $value );
You have javascript disabled. You will not be able to edit any code.