PDA

View Full Version : Strip/Append Custom BBCode to Certain Links


Phrost
12-15-2006, 12:18 AM
I'm at a complete loss here.

I'm using the YouTube custom BBCode to allow people to embed videos from YT in forum pages. But many of them are too dense/lazy/etc to add and strip out all but the video ID#.

So what would it take to do a simple replacement for anything linking to turn:

http://youtube.com/watch?v=_KqUHQzyHFs

to

[yt]_KqUHQzyHFs

As I understand it, the functionality to accomplish this is built-in to VB. Is this correct?