Could you help me with this problem? I have String like this:
<p class="youtube_sc mobile "><a href="vnd.youtube:bMHJODdp7-U" title="YouTube video player"><img src="http://i.ytimg.com/vi/bMHJODdp7-U/hqdefault.jpg" /><span class="play-button-outer" title="Click to play video"><span class="play-button"></span></span></a></p>
And I need to get only what will be after "youtube:" in this example this part of line:
bMHJODdp7-U
I use this code of my example:
String path = strin.replaceAll(".*(youtube:\\S+)", "$ title");
Where strin is the String line. But this code only replace what I need to " title"
Any ideas?