$regex = '#itemref://#e';
$mes = preg_replace($regex,'$fp',$mes);
$regex = '#(/([0-9]+?)/)#ime';
$mes = preg_replace($regex,'$lp',$mes);
$regex = '#(">)#e';
$mes = preg_replace($regex,'$tp',$mes);
this will prolly seem simple to some, but ive had some issues with it. i need to combine those into one statement, inclusive. i have a specific type of link im parsing to another type of link, but all other links i want left alone.
stuff replace stuff replace stuff replace stuff
like that third argument, any link has that, but somehow i need it grouped with the other 2 so that they are called together and not seperately.
can i group these in such a way where they will be replaced together and nothing else similar gets replaced?