<?php $msg = "abcde12321312abcde"; $txt = "/(1[a-z]+1)/"; $res = preg_replace_callback($txt,function($m){ return $m[1]; },$msg); echo $res;
You have javascript disabled. You will not be able to edit any code.