Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove space from string javascript

var puzzle1=myTrim($("#puzzleinput").val());
            function myTrim(x) {
              return x.replace(/^s+|s+$/gm,'');
            }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #space #string #javascript
ADD COMMENT
Topic
Name
1+5 =