<?php $strings = [ 'F7998FM3213/02F', 'J442554NM/05', 'K439459845/34D', 'FOO007/1A2B3CD45EFG6', ]; var_export( preg_replace( '#(?:[^/]*/|\G(?!^))\d*\K\D+#', '', $strings ) );
You have javascript disabled. You will not be able to edit any code.