title: How to get the video id from YouTube url in mobile browser using regex in java
body: <p>I need to get the video id of a YouTube url as follows.
  <a href="https://m.youtube.com/watch?v=9tg3csrFVJw" rel="nofollow noreferrer">https://m.youtube.com/watch?v=9tg3csrFVJw</a>
  I referred <a href="https://stackoverflow.com/questions/33273137/get-video-id-from-youtube-url-using-android-youtube-api-v3">This</a> and <a href="https://stackoverflow.com/questions/24048308/how-to-get-the-video-id-from-a-youtube-url-with-regex-in-java">this</a> but I could not find a solution.</p>
  
  <p>any help is appreciated.</p>