<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Stanley Shilov - Web Development, SEO and SEM &#187; regex</title>
	<atom:link href="http://www.stanleyshilov.com/blog/tag/regex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stanleyshilov.com</link>
	<description>Web Development with a twist of Affiliate Marketing</description>
	<lastBuildDate>Sun, 06 Jun 2010 21:11:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Sentence Capitalization with Java</title>
		<link>http://www.stanleyshilov.com/blog/proper-sentence-capitalization-java/</link>
		<comments>http://www.stanleyshilov.com/blog/proper-sentence-capitalization-java/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 03:19:02 +0000</pubDate>
		<dc:creator>Stanley</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://www.stanleyshilov.com/?p=250</guid>
		<description><![CDATA[Simple Java function to capitalize the first word of every sentence:

public static String capitalize(String content){
	Pattern capitalize = Pattern.compile(&#34;([\\?!\\.] )([a-z])&#34;);
	Matcher m = capitalize.matcher(content);
	while (m.find()) {
		content = m.replaceFirst(m.group(1) + m.group(2).toUpperCase());
		m = capitalize.matcher(content);
	}
	return content;
}

If you have any suggestions on how to improve this method, leave a comment.
]]></description>
			<content:encoded><![CDATA[<p>Simple Java function to capitalize the first word of every sentence:</p>
<pre class="brush: java;">
public static String capitalize(String content){
	Pattern capitalize = Pattern.compile(&quot;([\\?!\\.] )([a-z])&quot;);
	Matcher m = capitalize.matcher(content);
	while (m.find()) {
		content = m.replaceFirst(m.group(1) + m.group(2).toUpperCase());
		m = capitalize.matcher(content);
	}
	return content;
}
</pre>
<p>If you have any suggestions on how to improve this method, leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stanleyshilov.com/blog/proper-sentence-capitalization-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
