title: Extracting specific urls from a text file using java
body: <p>I have a text document in which I have a bunch of urls of the form <code>/courses/......./.../..</code>
  and from among these urls, I only want to extract those urls that are of the form <code>/courses/.../lecture-notes</code>. Meaning the urls that begin with <code>/courses</code> and ends with <code>/lecture-notes</code>.
  Would anyone know of a good way to do this with regular expressions or just by string matching?</p>