title: Want to find and remove word only from string using - PHP
body: <p>I hav especific need of removing word from string, But I am having problem when that word has dot (.) character.</p>
  
  <p>Lets see here is the string and what I have tried so far?</p>
  
  <pre><code>$result = 'Hello Ka Kashish.';
  $result = preg_replace('/\bKa\b/i', '', $result);
  </code></pre>
  
  <p>I will get the expected result <code>'Hello  Kashish.'</code></p>
  
  <p>But if the string is like below, It is not working</p>
  
  <pre><code>$result = 'Hello Ka. Kashish.';
  $result = preg_replace('/\bKa.\b/i', '', $result);
  </code></pre>
  
  <p>It gives me result <code>'Hello Ka. Kashish.'</code>
  Why this .(dot) is not working?
  Please give me solution.</p>
  
  <p>And if I can achive this word removal in any other way, pLease let me know. 
  I want to remove only word not set of charaters, as 'Ka' word will be removed, but 'Ka' will not be removed from 'Kashish'.
  Please help me.</p>
  
  <p>Thanks in Advance</p>