In my forum I have a BB code to display youtube videos. following options can be used to extract youtube video code and use this code to build the embed code:
[youtube]http://www.youtube.com/watch?v=_OBlgSz8sSM&feature=related[/youtube]
[youtube]http://www.youtube.com/watch?v=_OBlgSz8sSM[/youtube]
[youtube]_OBlgSz8sSM[/youtube]
All these options return the youtube video code __OBlgSz8sSM
After upgrade to new version of forum the first two options with parsing of youtube link not working and only the last option with [youtube]_OBlgSz8sSM[/youtube] is work.
These BB codes are part of forum posts and not in separate field in database.
My goal is to replace all sub strings that start with [youtube] AND end with [/youtube] that contain ?v= with
[youtube]11 characters from ?v=[/youtube]
I am using MySQL table name is POST field name that contain these BB codes is PAGETEXT
Can you please assist me to build this update.