Kevin
Well-known member
If you're still having problems with those media tags, I ended up doing two different runs. For the life of me I couldn't figure out how to combine the two of them to handle some of the old media tags having extra params at the end of the YouTube ID so a two-pass approach was easier & faster than me playing around with regex further.... but I can't get it to do anything on that youtube one.
Code:
Quick Find: [media]
Regular Expression: #\[media]http:.+youtube.+v=([a-zA-Z0-9_\-]+)&.+\[/media]#siU
Replacement String: [media=youtube]$1[/media]
That took of the ones that had additional parameters. After that I did a second run (code below) to handle the bulk of them that did not have additional paramters.
Code:
Quick Find: [media]
Regular Expression: #\[media]http:.+youtube.+v=([a-zA-Z0-9_\-]+)\[/media]#siU
Replacement String: [media=youtube]$1[/media]