I need to catch custom "tag" in text string, rewrite and replace it. It looks like:
<mytag=http://url.com/file.php?some=variable&another=variable>
First I need to catch url from tag, then I rewrite it with my function and then replace whole tag with new url. Can anybody help me how to catch and replace it? In text can be more tags with various url's.