Bah. Got the parameters backwards in my head. Okay so you want to take anything between square bracketed URL tags and replace it with a fixed string....What exactly did you want to 'save' from the original string? Display it where? Give me an example of your input, followed by what you want it to look like when you're done.

chrisio
—
2012-02-22T20:23:00Z —
#4

Hi.

Thanks for replying. It is just standard formatted text (as supplied by ckeditor)

I need to grab the url from within a link that is surrounded by the url/url and replace that url with another. Now I need to identify the link by url/url because there are some links on the page that do not require them to be changed.

I hope that is enough to go on.

Thanks for helpingChris

wonshikee
—
2012-02-22T21:35:08Z —
#5

You would need to use a backreference, in order to retrieve values from the original string.

So if you have

<a href='http://google.com'>Google</a>

You would write it as (note: i didn't test this, just for illustration)