title: How to compare two string with ignoring some substring of the target string
body: <p>Suppose I have two strings like</p>
  
  <pre><code>String 1: You have transferred balance 1000. Transaction ID:12345670
  String 2: You have transferred balance 1000. Transaction ID:@ignore
  </code></pre>
  
  <p>I want to compare the 2nd string with 1st string with ignoring the dynamic transaction id part with some sort of keyword(example:- @ignore). So while comparing the 2nd string with the 1st string, if it finds the keyword in a place of the target string, it will ignore that specific part in the source string and return true.</p>
  
  <p>Can this be done in Java or are there any java library available for this kind of operation?</p>