<?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>Regex Archives - Shawn DeWolfe Consulting</title>
	<atom:link href="https://shawndewolfe.com/category/code-example/regex/feed" rel="self" type="application/rss+xml" />
	<link>https://shawndewolfe.com/category/code-example/regex</link>
	<description>Web Design &#124; WordPress Development &#124; WordPress Support</description>
	<lastBuildDate>Fri, 20 Dec 2019 05:33:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shawndewolfe.com/wp-content/uploads/2019/05/cropped-favicon-32x32.png</url>
	<title>Regex Archives - Shawn DeWolfe Consulting</title>
	<link>https://shawndewolfe.com/category/code-example/regex</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Title Case Regular Expression</title>
		<link>https://shawndewolfe.com/title-case-regular-expression.html</link>
					<comments>https://shawndewolfe.com/title-case-regular-expression.html#respond</comments>
		
		<dc:creator><![CDATA[Shawn DeWolfe]]></dc:creator>
		<pubDate>Fri, 20 Dec 2019 05:33:37 +0000</pubDate>
				<category><![CDATA[Regex]]></category>
		<category><![CDATA[Code Example]]></category>
		<guid isPermaLink="false">https://shawndewolfe.com/?p=3427</guid>

					<description><![CDATA[<p>You feed in a string to a regular expression and it comes out in Title Case. As Perl, PHP and ASP use regular expressions, this expression is useful with a little tinkering: $x =~ s/(\w+)/\u\L$1/g; $x =~ s/(\sand&#124;of\s)/\L$1/ig if ($x =~ /\sand&#124;of\s/i); Enjoy!</p>
<p>The post <a href="https://shawndewolfe.com/title-case-regular-expression.html">Title Case Regular Expression</a> appeared first on <a href="https://shawndewolfe.com">Shawn DeWolfe Consulting</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>You feed in a string to a regular expression and it comes out in Title Case. As Perl, PHP and ASP use regular expressions, this expression is useful with a little tinkering:</p>
<p>$x =~ s/(\w+)/\u\L$1/g;<br />
$x =~ s/(\sand|of\s)/\L$1/ig if ($x =~ /\sand|of\s/i);</p>
<p>Enjoy! </p>
<p>The post <a href="https://shawndewolfe.com/title-case-regular-expression.html">Title Case Regular Expression</a> appeared first on <a href="https://shawndewolfe.com">Shawn DeWolfe Consulting</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://shawndewolfe.com/title-case-regular-expression.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
