function Stringer(string){
var that = this;
this.string = string;
this.trim = function(regex){
regex = regex || '\\s';
var start = new RegExp('^' + regex + '*');
var end = new RegExp(regex + '*$');
return that.string.replace(start, '').replace(end, '');
};
}
Skip to content
175
pages