<?php $string = '3:1,1:2,2:3'; $string = preg_replace('#1:(\d*),#', 'whateverToReplaceWith', $string); echo $string;
You have javascript disabled. You will not be able to edit any code.