<?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>Powertips &#187; Regular Expression (NET)</title>
	<atom:link href="http://scripting.chaindb.com/category/dotnet/regular-expression-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://scripting.chaindb.com</link>
	<description>Programmer tips</description>
	<lastBuildDate>Tue, 15 May 2012 23:56:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to replace one or more whitespace in vb.net</title>
		<link>http://scripting.chaindb.com/2011/09/01/how-to-replace-one-or-more-whitespace/</link>
		<comments>http://scripting.chaindb.com/2011/09/01/how-to-replace-one-or-more-whitespace/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 04:52:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Regular Expression (NET)]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[reqular expression]]></category>
		<category><![CDATA[vb.net]]></category>

		<guid isPermaLink="false">http://scripting.chaindb.com/?p=1046</guid>
		<description><![CDATA[Imports System.Text.RegularExpressions&#60;/p&#62; Module Example &#160; &#160;Public Sub Main&#40;&#41; &#160; &#160; &#160; Dim input As String = &#34;This is &#160; text with &#160; far &#160;too &#160; much &#160; &#34; + &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#34;whitespace.&#34; &#160; &#160; &#160; Dim pattern As String = &#34;\s+&#34; &#160; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-7360303176440694";
/* scripting_Banner (468 x 60) */
google_ad_slot = "0537236933";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<div class="geshi no vbnet">
<ol>
<li class="li1">
<div class="de1"><span class="kw6">Imports</span> System.<span class="me1">Text</span>.<span class="me1">RegularExpressions</span>&lt;<span class="sy0">/</span>p&gt;</div>
</li>
<li class="li1">
<div class="de1">Module Example</div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="kw2">Public</span> <span class="kw6">Sub</span> Main<span class="br0">&#40;</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; <span class="kw6">Dim</span> <span class="kw2">input</span> <span class="kw2">As</span> <span class="kw2">String</span> <span class="sy0">=</span> <span class="st0">&quot;This is &nbsp; text with &nbsp; far &nbsp;too &nbsp; much &nbsp; &quot;</span> <span class="sy0">+</span> </div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&quot;whitespace.&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; <span class="kw6">Dim</span> pattern <span class="kw2">As</span> <span class="kw2">String</span> <span class="sy0">=</span> <span class="st0">&quot;\s+&quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; <span class="kw6">Dim</span> replacement <span class="kw2">As</span> <span class="kw2">String</span> <span class="sy0">=</span> <span class="st0">&quot; &quot;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; <span class="kw6">Dim</span> rgx <span class="kw2">As</span> <span class="kw2">New</span> Regex<span class="br0">&#40;</span>pattern<span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; <span class="kw6">Dim</span> result <span class="kw2">As</span> <span class="kw2">String</span> <span class="sy0">=</span> rgx.<span class="kw7">Replace</span><span class="br0">&#40;</span><span class="kw2">input</span>, replacement<span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; Console.<span class="me1">WriteLine</span><span class="br0">&#40;</span><span class="st0">&quot;Original String: {0}&quot;</span>, <span class="kw2">input</span><span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp; &nbsp; Console.<span class="me1">WriteLine</span><span class="br0">&#40;</span><span class="st0">&quot;Replacement String: {0}&quot;</span>, result<span class="br0">&#41;</span></div>
</li>
<li class="li1">
<div class="de1">&nbsp; &nbsp;<span class="kw6">End</span> <span class="kw6">Sub</span></div>
</li>
<li class="li1">
<div class="de1"><span class="kw6">End</span> Module</div>
</li>
</ol>
</div>
<p><script type="text/javascript"><!--
google_ad_client = "pub-7360303176440694";
/* scripting_336x280, created 5/12/10 */
google_ad_slot = "2066664949";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://scripting.chaindb.com/2011/09/01/how-to-replace-one-or-more-whitespace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

