<?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>Whiteforest &#187; regular expression</title>
	<atom:link href="http://www.whiteforest.co.uk/tag/regular-expression/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whiteforest.co.uk</link>
	<description>Mark Robson&#039;s web development blog</description>
	<lastBuildDate>Mon, 22 Mar 2010 11:18:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Inserting a Space Before a Capital Letter</title>
		<link>http://www.whiteforest.co.uk/2008/10/inserting-a-space-before-a-capital-letter/</link>
		<comments>http://www.whiteforest.co.uk/2008/10/inserting-a-space-before-a-capital-letter/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 13:51:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[regular expression]]></category>

		<guid isPermaLink="false">http://www.whiteforest.co.uk/?p=28</guid>
		<description><![CDATA[I needed to insert a space between a camel case string, however, some of the strings contained more than one uppercase letter. I needed to have a regular expression that inserted a space only after an uppercase letter that had a lowercase letter following it. Here is the code:

1
2
3
4
5
//put space after uppercase
$string = preg_replace&#40;'/(\w+)([A-Z])/U', '\\1 [...]]]></description>
		<wfw:commentRss>http://www.whiteforest.co.uk/2008/10/inserting-a-space-before-a-capital-letter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
