Return to Snippet

Revision: 4201
at November 6, 2007 05:44 by pablazo


Initial Code
text = text.replace(/^\s+|\s+$/g, '');

Initial URL


Initial Description


Initial Title
javascript trim with regexp

Initial Tags
javascript, regexp

Initial Language
JavaScript