<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Count occurence of character (i.e. line breaks) in a MySQL field</title>
	<link>http://www.jellyandcustard.com/2005/11/08/count-occurence-of-character-ie-line-breaks-in-a-mysql-field/</link>
	<description>Web Development Blog</description>
	<pubDate>Fri, 05 Sep 2008 22:11:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: REB</title>
		<link>http://www.jellyandcustard.com/2005/11/08/count-occurence-of-character-ie-line-breaks-in-a-mysql-field/#comment-26</link>
		<pubDate>Wed, 08 Feb 2006 12:23:25 +0000</pubDate>
		<guid>http://www.jellyandcustard.com/2005/11/08/count-occurence-of-character-ie-line-breaks-in-a-mysql-field/#comment-26</guid>
					<description>Great tip !
Note that if you count word occurences (several charcters) you'll have to divide by the number of char :

SELECT (LENGTH(strContent) - LENGTH(REPLACE(strContent, '$strWord', ''))) / LENGTH('$strWord') AS intOccurence</description>
		<content:encoded><![CDATA[<p>Great tip !<br />
Note that if you count word occurences (several charcters) you&#039;ll have to divide by the number of char :</p>
<p>SELECT (LENGTH(strContent) - LENGTH(REPLACE(strContent, &#039;$strWord&#039;, &#039;&#039;))) / LENGTH(&#039;$strWord&#039;) AS intOccurence
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
