<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: regex code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Wed, 23 Jul 2008 15:34:31 GMT</pubDate>
    <description>DZone Snippets: regex code</description>
    <item>
      <title>Regular Expressions with MySQL</title>
      <link>http://snippets.dzone.com/posts/show/5011</link>
      <description>&lt;code&gt;&lt;br /&gt;SELECT * FROM texts WHERE content REGEXP '[^a-z]Hello[^a-z]' ;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;If you really want to force a REGEXP comparison to be case sensitive, use the BINARY keyword to make one of the strings a binary string.&lt;br /&gt;&lt;code&gt;&lt;br /&gt;SELECT * FROM texts WHERE content REGEXP BINARY '[^a-zA-Z]Hello[^a-zA-Z]' ;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;Warning: some characters do not work. Example :&lt;br /&gt;&lt;code&gt;&lt;br /&gt;SELECT * FROM texts WHERE content REGEXP '[^\w]Hello[^\w]' ;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ab-d.fr/"&gt;ab-d.fr source code&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;</description>
      <pubDate>Sat, 19 Jan 2008 22:05:22 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/5011</guid>
      <author>ki4ngel (Benoit Asselin)</author>
    </item>
  </channel>
</rss>
