title: MySQL and word boundary in regex
body: <p>How can I use regex word boundary in a MySQL query?</p>
  
  <p>For instance, I want to match either 'product' or 'newsletter',</p>
  
  <p>It works fine with <code>OR</code>, </p>
  
  <pre><code>IF(? = 'product' OR ? = 'newsletter', ... , ...)
  </code></pre>
  
  <p>But how about a regex? I assume it would be something like this below?</p>
  
  <pre><code>IF(? REGEXP '^('product'||'newsletter')+$', ..., ... ) 
  </code></pre>