Can anybody help me with this please.
I'm trying to add a new site this is what i already got
Regex:
Code:
http?:\/\/www\.newschoolers\.com\/watch\/([0-9]+\.[0-9])\/([a-zA-Z]+)\?.*
Embed:
Code:
<iframe src="http://www.newschoolers.com/videoembed/{vb:raw code}" class="nsVideoEmbed" width="640" height="390" frameborder="0" style="border: 0px; padding: 0xp; margin: 0px;"></iframe>
The original URL is:
Code:
http://www.newschoolers.com/watch/577657.0/Wapbaballibop?c=11&o=3&t=2
And the original embed Code is:
Code:
<iframe src="http://www.newschoolers.com/videoembed/577657" class="nsVideoEmbed" width="640" height="390" frameborder="0" style="border: 0px; padding: 0xp; margin: 0px;"></iframe>
It nearly works but I need the video ID in the embed code without the ".0" at the End.
The embed code with my current regex is:
Code:
<iframe src="http://www.newschoolers.com/videoembed/577657.0" class="nsVideoEmbed" width="640" height="390" frameborder="0" style="border: 0px; padding: 0xp; margin: 0px;"></iframe>
And what I need is:
Code:
<iframe src="http://www.newschoolers.com/videoembed/577657" class="nsVideoEmbed" width="640" height="390" frameborder="0" style="border: 0px; padding: 0xp; margin: 0px;"></iframe>
Can anybody give me a hint how to do this?
Thanks!