<?php $str = '200x2000^3434^54545|120x400^3333^4444'; echo preg_replace('/\^[^^]*\^/', 'XXXXX', $str, 1);
You have javascript disabled. You will not be able to edit any code.