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