title: regex pattern to match specific number pattern , skip if there different pattern
body: <p>Requirement: </p>
  
  <p>If pattern <strong>57XXXXXXX</strong> OR <strong>57XXXXXXX-X</strong> found in a sentence , then copy this matched pattern (<strong>X</strong>- denotes 7 integer number and <strong>57</strong> are constant values must be there), else ignore complete sentence.</p>
  
  <p>I have written a regex pattern <code>57[0-9]{7}|-[0-9]{1}</code> to do match both the pattern. </p>
  
  <p>If below pattern found(8 digits after 57 instead 7 , then still above regex still gets the matching pattern (actually expecting regex to not match)</p>
  
  <p>for e.g.  5712345678-0 (after 57 , 8 digits in sentance)  --> regex matches and gives 571234567-0 </p>
  
  <p>Using java to compile above pattern.</p>