hi
i have run into a problem i have trying to remove some text from uesr inputs
for example if i have the code listed below
i need to strip off the secound part of the url value leaving the results as
i have tryed all sorts of patterns to try and strip the end url and the end </a> tag from the results with no luck
can anyone help me in a regular experssion to use to strip these unwanted urls and end a tag from my inputs
i was trying a experssion like this
$body[$xx] = preg_replace ("/-url<\/a>/", "[-url]", $body[$xx]);
but it strips out all of the urls, i only need the part between [-url] to </a> removed
thanks in advance, i'm still quite new to using these experssions to remove text and have been on this hours now with no luck