Zack Owens
Showing how COOL .NET is!
Sign in
|
Join
Home
Contact
About
RSS
Atom
Comments RSS
Search
Tags
.NET
AJAX
ASP.NET
ASP.NET MVC
ASP.NET Performance
ASP.NET Providers
C#
ClubStarterKit
Conversion
CSS
CSS Sprite
IL
JavaScript
jQuery
OneLine
Open Source
SubSonic
SubSonic Providers
Visual Basic
WebControl
Welcome
Navigation
Home
Blogs
Archives
August 2008 (1)
July 2008 (1)
June 2008 (1)
May 2008 (1)
April 2008 (2)
March 2008 (3)
February 2008 (2)
January 2008 (2)
December 2007 (2)
November 2007 (1)
October 2007 (3)
September 2007 (5)
General
EagleEnvision.NeT
Browse by Tags
All Tags
»
IL
»
OneLine
(
RSS
)
.NET
C#
One-Line C# #1 : Remove Whitespace from a string
by
zowens
Thought I'd post a quick extension method that I made today. Hope it helps someone. public static string RemoveWhitespace( this string str) { try { return new Regex( @"\s*" ).Replace(str, string .Empty); } catch (Exception) { return str; } }
Filed under:
.NET
,
IL
,
C#
,
OneLine
More Posts