In the code there is a string that contains HTML. Within this HTML there is embed
of a YouTube video:
<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.youtube.com/v/ZJLAJVmggt0%26hl=en%26fs=1%26rel=0%26ap=%2526fmt=18"width="725" height="400"></embed>
I need to get only the YouTube video ID, which in the above case would be ZJLAJVmggt0
.
How to do this knowing that the string is within one iteration, ie each cycle changes the value, so the above is never in the same position within the string and the video ID is different each time iteration.