Oh thats awesome, thanks man, much appreciated!!
I actually have a little bit more complicated follow-up question for anyone who can figure it out.
I have a $textarea which would contain a string such as:
and I would like to try to build a php routine that would change that $textarea to now be
text text text text text text text text text text text text text text text text text text [youtube]7KdMiRUbHi0l[/youtube] text text text text text text text text text text text text text text text text text text
So using your method I was able to extract out the 7KdMiRUbHi0l and then I can add [youtube] and [/youtube] around it.
But Im having trouble writing a routing that will actualy search out the [URL="... from my $textarea and replace it with my new content. The biggest problem for me is telling it where to end in terms of the [/URL].
I know this is a bit involved, but i'm hoping someone out there can think of a good solution to this.
thanks!