<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/">
  <channel>
    <title>Simple function to split camelCase words</title>
    <link>http://blogs.lotterypost.com/speednet/2007/8/simple-function-to-split-camelcase-words.htm</link>
    <atom:link href="http://www.lotterypost.com/rss/blogcomments/18726" rel="self" type="application/rss+xml" />
    <description>Speednet's Blog: Simple function to split camelCase words</description>
    <dc:language>en-us</dc:language>
    <generator>Lottery Post RSS Generator</generator>
    <item>
      <title>Original Blog Entry: Simple function to split camelCase words</title>
      <link>http://blogs.lotterypost.com/speednet/2007/8/simple-function-to-split-camelcase-words.htm</link>
      <guid isPermaLink="true">http://blogs.lotterypost.com/speednet/2007/8/simple-function-to-split-camelcase-words.htm</guid>
      <pubDate>Thu, 30 Aug 2007 15:54:41 GMT</pubDate>
      <dc:creator>Speednet</dc:creator>
      <description><![CDATA[<p>The&nbsp;phrase &quot;camel case&quot; is used to describe a common method of naming variables, properties, and methods in a programming language.</p><p>It is useful for stringing several words together, while maintaining readability.&nbsp; (More <a href="http://en.wikipedia.org/wiki/Camelcase" rel="external">here</a>)</p><p>If you ever have the need to split apart the words in a camel case word, here's just about the easiest way to do it (shown in both VB.NET and C#):</p><p><strong>SplitCamelCase()</strong> - VB</p><p><span style="font-family: courier new,courier"><span style="color: #0000ff">Function</span> SplitCamelCase(<span style="color: #0000ff">ByVal</span> Source <span style="color: #0000ff">As</span> <span style="color: #0000ff">String</span>) <span style="color: #0000ff">As</span> <span style="color: #0000ff">String</span>()<br /><span style="color: #0000ff">&nbsp; &nbsp; Return</span> Regex.Split(Source, <span style="color: #a31515">&quot;(?&lt;!^)(?=[A-Z])&quot;</span>)<br /><span style="color: #0000ff">End</span> <span style="color: #0000ff">Function</span></span></p><p><strong>SplitCamelCase()</strong> - C#</p><p><span style="font-family: courier new,courier"><span style="color: #0000ff">string</span>[] SplitCamelCase(<span style="color: #0000ff">string</span> source) {<br /><span style="color: #0000ff">&nbsp; &nbsp; return</span> Regex.Split(source, <span style="color: #a31515">@&quot;(?&lt;!^)(?=[A-Z])&quot;</span>);<br />}</span></p><p>&nbsp;</p>]]></description>
      <category>* Original Blog Entry</category>
      <wfw:comment>http://www.lotterypost.com/blogentry/18726</wfw:comment>
    </item>
  </channel>
</rss>
