.Net Logics
Pages
Home
About Us
Saturday, 13 April 2013
Trim Function using regular expression in javascript
function
trim
(
s
)
{
return
s
.
replace
(
/
^
\s
*
/
,
""
)
.
replace
(
/
\s
*
$
/
,
""
)
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment