04-06-2015 Saat: 20:36
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
Code:
Replacement
Code:
Example of appearance
Regex is not my strong suit so this can probably be done a lot more effectively, but as-is, it works.
Regular Expression
Code:
Kod:
\[ytplaylist\](https?:\/\/(.*?)?youtube\.com\/playlist\?list\=([a-z0-9\-\/]*))\[/ytplaylist\]
Replacement
Code:
Kod:
<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list=$3" frameborder="0" allowfullscreen></iframe>
Example of appearance