Hi,
I don't know exactly what you are looking for as far as your algorithm but
try this;
private function init()
{
var s:String = "<link>www.mywebsite.com</link>";
var p:RegExp = /<link\b[^>]*>(.*?)<\/link>/gi;
s = s.replace(p,"<a href='$1' target='_blank'>$1</a>");
trace(s)
}
it traces;
<a href='www.mywebsite.com' target='_blank'>www.mywebsite.com</a>
Peace, Mike
On 1/23/07, Webdevotion <[EMAIL PROTECTED]> wrote:
No one ? Come oooon : )
Any nice tutorials or pointers ?
--
Teoti Graphix
http://www.teotigraphix.com
Blog - Flex2Components
http://www.flex2components.com
You can find more by solving the problem then by 'asking the question'.