title: laravel preg_replace bold string before string including symbols
body: <p>I have a data to display which have certain to make it bold.</p>
  
  <p>The data such as below:</p>
  
  <p>Y.B. DATO' SRI HASAN BIN
  ARIFIN [ ROMPIN ] minta</p>
  
  <p>I want the word before 'minta' change to bold. Just like below</p>
  
  <p><strong>Y.B. DATO' SRI HASAN BIN
  ARIFIN [ ROMPIN ]</strong> minta</p>
  
  <p>I have use </p>
  
  <pre><code>$arr = explode("minta", $str, 2);
  $first = $arr[0];
  $str =preg_replace("^".$first."^", '&lt;b&gt;$0&lt;/b&gt;', $str);
  </code></pre>
  
  <p>But its not working. Please help me.</p>