title: Fetch Merchant Name from Transaction SMS - Android
body: <p>I want to fetch Merchant Name from Bank Transaction SMS. For this I used following regx;</p>
  
  <pre><code>Pattern.compile("(?i)(?:\\sat\\s|in\\*)([A-Za-z0-9]*\\s?-?\\s?[A-Za-z0-9]*\\s?-?\\.?)")
  </code></pre>
  
  <p>Its works fine with those SMS which contains <strong>at</strong> / <strong>in</strong> but what if SMS contains other than this two words.
  For example, SMS is like ;</p>
  
  <blockquote>
    <p>Dear Customer, You have made a Debit Card purchase of INR1,600.00 on
    30 Jan. Info.VPS*AGGARWAL SH.</p>
  </blockquote>
  
  <p>Then how to fetch <strong>AGGARWAL SH</strong> from above SMS?</p>