title: java comparing two Pattern objects
body: <p>Is there an easy way to compare two <code>Pattern</code> objects?</p>
  
  <p>I have a <code>Pattern</code> which compiled using the regex <code>"//"</code> to check for comments in a code.</p>
  
  <p>Since there are several regex to describe comments, I want to find a way to difference them.</p>
  
  <p>How can it be done? the <code>Pattern</code> class does not implements the <code>equals</code> method.</p>