Re: [Flashcoders] Convert URLs in a string to links

2007-06-26 Thread jtgxbass
Well, simplest is to use one of the many regex classes out there, failing that 8--8--8--8--8--8--8--8-- var test = Some link http://test.com and another http://www.berty.co.uklets test.; var markedUp = ; var h =

[Flashcoders] Convert URLs in a string to links

2007-06-25 Thread Mick G
Can anyone think of an efficient way to convert a URL (or multiple URLs) in a string to a link. eg. myString = this website http://www.this.com is really cool; would convert to: this website a href='http://www.this.com' http://www.this.com/a is really cool. I tried splitting the string at