skip to main
|
skip to sidebar
me7486 blog
Wednesday, December 10, 2008
Trim a string in JavaScript using replace function and regular expression
from this article http://www.nicknettleton.com/zine/javascript/trim-a-string-in-javascript
var trimmed = str.replace(/^\s+|\s+$/g, '') ;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
My Links
ANZ Bank Internet Banking
ASB Bank Internet Banking
NZ FreeView TV Guide
TelstraClear My Profile
TelstraClear TV Guide
Vodafone NZ Service Login
IT Dev Links
CodePlex Microsoft Open Source
Microsoft ASP.NET Official Site
OmegaMan's Musings .NET Info
Scott Gu's Blog
VMWare Fusion Forum
Blog Archive
►
2011
(2)
►
May 2011
(2)
►
2010
(1)
►
January 2010
(1)
►
2009
(13)
►
October 2009
(1)
►
July 2009
(2)
►
June 2009
(2)
►
May 2009
(1)
►
March 2009
(1)
►
February 2009
(3)
►
January 2009
(3)
▼
2008
(34)
▼
December 2008
(4)
Javascript to close the current window
Javascript Form Submit Using POST action Into a ne...
Trim a string in JavaScript using replace function...
SQL SERVER SQL Query Conditional Count with CASE C...
►
November 2008
(2)
►
October 2008
(5)
►
September 2008
(2)
►
August 2008
(1)
►
July 2008
(11)
►
June 2008
(9)
About Me
me7486
Auckland, New Zealand
IT Worker
View my complete profile
No comments:
Post a Comment