Extract text from string Java
<p>With this string "ADACADABRA". how to extract "CADA" From string "ADACADABRA" in java.</p>

<p>and also how to extract the id  between  "/" and "?" from the link below. </p>

<p><a href="http://www.youtube-nocookie.com/embed/zaaU9lJ34c5?rel=0" rel="nofollow">http://www.youtube-nocookie.com/embed/zaaU9lJ34c5?rel=0</a> </p>

<p>output should be: zaaU9lJ34c5</p>

<p>but should use "/" and "?" in the process.</p>
