<?php $msg = "1a12v21s1fs4d4"; $txt = "/(1[a-z]+1)(4[a-z]4)/"; $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.