2015-05-11, 03:18 PM
Seeing as how youtube change how stuff embeds every so often and the fact the last playlist embed I found was not working and was trailing code, I fixed this up.
Regex is not my strong suit so this can probably be done a lot more effectively, but as-is, it works.
Regular Expression
Replacement
Example of appearance
![[Image: seg3wG7.png]](https://camo.mybb.com/cdbd1e4bffee11290345160340af714a1a1dfbd6/68747470733a2f2f692e696d6775722e636f6d2f736567337747372e706e67)
Regex is not my strong suit so this can probably be done a lot more effectively, but as-is, it works.
Regular Expression
\[ytplaylist\](https?:\/\/(.*?)?youtube\.com\/playlist\?list\=([a-z0-9\-\/]*))\[/ytplaylist\]
Replacement
<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list=$3" frameborder="0" allowfullscreen></iframe>
Example of appearance