title: Regex to grab all ".js" and ".css" href links from file
body: <p>I have a string with HTML content and I need to grab all links to <em>.css</em> and <em>.js</em> files. Now, I am using this pattern <code>"(http:.*?.\\.css)"</code> to grab all CSS links, but how I can include .js links, too?</p>
  
  <p>Here is my full code:</p>
  
  <pre><code>List&lt;String&gt; urlList =  new ArrayList&lt;String&gt;();
  String str = new String(Files.readAllBytes(FileSystems.getDefault().getPath("c:" + File.separator + "nutchfiles" + File.separator + "test.html")));
  Pattern p = Pattern.compile("(http:.*?.\\.css)");
  Matcher m = p.matcher(str);
  
  while (m.find()) {
      LOG.info("matched urls" + m.group());
  }
  </code></pre>