Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript trim newline

str = str.replace(/^s+|s+$/g, '');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #trim #newline
ADD COMMENT
Topic
Name
7+1 =