Javascript RegExp Multiline

RJM Programming - February, 2019

Edit This (to variable x) ...Effect of RegExp Multiline ...
x.replace(/^\s+|\s+$/gm,'')
Effect of RegExp no Multiline ...
x.replace(/^\s+|\s+$/g,'')