title: match a number using regex for comma separated number
body: <p>I have a string that contains number with separated by comma like below.</p>
  
  <blockquote>
    <p>15,22,20,26,33,445,40,44,22,225,115,2</p>
  </blockquote>
  
  <p>I want to know if a number say <code>15</code> is in that string or not.<br><br>The problem is that <code>15</code> and <code>115</code> both are a match.<br><br>Same for other number say <code>2</code>, for this case <code>20</code> , <code>25</code>, and <code>225</code> are match.<br><br>For both cases only it should return if there is <code>15</code> or <code>2</code> in the string.<br><br>I tried using <code>like</code> keyword but it's not working. It also return the rows with <code>115</code> or <code>20, 225, 222</code> <br><br>whille matching <code>15 and 2</code> respectively. <br><br>Can anyone suggest a <code>regex</code> pattern?<br><br>
  <strong>Update</strong><br><br>
  I have a query like below where I was using <code>like</code> keyword, but I was getting wrong result for above reason.<br></p>
  
  <pre><code>SELECT DISTINCT A.id,A.title,A.title_hi,A.cId,B.id as cid1,A.report_type ,A.icon_img_url, A.created_at , A.news_date 
  FROM tfs_report_news A, tfs_commodity_master B
  WHERE (',' + RTRIM(A.cId) + ',') LIKE ('%,' + B.id + ',%')
  AND A.ccId = B.ccId AND A.`report_type`= "M" 
  AND A.isDeleted=0 AND A.isActive=1 AND B.isDeleted=0 
  AND B.status=1 
  AND A.news_date= (SELECT MAX(T.news_date) 
  FROM tfs_report_news T WHERE (',' + RTRIM(T.cId) + ',') 
  LIKE ('%,' + B.id + ',%'))
  ORDER BY created_at desc, id desc limit 100;
  </code></pre>
  
  <p><br><br>
  Here <code>tfs_report_news</code> has the string <code>15,22,20,26,33,445,40,44,22,225,115,2</code> as column name <br><br><code>cId</code> and individual <code>cId</code> like <code>15</code> or <code>2</code> is <code>id</code> of <code>tfs_commodity_master</code></p>