Forum Moderators: coopster
ABCDEFGHIJKLMN and rework it to be EFGH-CD-AB IJ:KL:MN
Can someone help me on this please.
If not:
$s = "ABCDEFGHIJKLMN";
$s2 = preg_replace("/(A-Z){2}(A-Z){2}(A-Z){4}(A-Z){2}(A-Z){2}(A-Z){2}/","$3-$2-$1 $4:$5:$6",$s);
I hope that works!
ahmedtheking, thanks but that doesn't do what I wanted.