plugins/settag/settag.js
function(Template,expression){
	this.needs = {};
	expression = expression.split(/\s+/);
	this.name = Noodles.Utilities.parseType(Template,expression[0]);
	if(this.name.type !== "object"){
		Noodles.Utilities.warning(Template,'SetARegEx tag has bad syntax, the name must be an identifier');
		this.skip = true;
		return;
	}
	this.value = Noodles.Utilities.parseType(Template,expression[2]);
	this.options = typeof expression[3] === "string" && expression[3].length > 0 ? expression[3].toLowerCase() : false;
	if(this.value.type === "string"){
		this.regex = this.options ? new RegExp(this.value.execute(),this.options) : new RegExp(this.value.execute());
	}
	else if(this.value.type === "object"){
		this.regex = false;
		this.needs = Noodles.Utilities.mergeObjectWith(this.needs,this.value.needs);
		this.modifies = {};
		this.modifies[this.value.order[0]] = true;
	}
	else{
		this.skip = true;
		Noodles.Utilities.warning(Template,'SetARegEx tag has bad syntax, the value must receive a string or object');
		return;
	}
}
function(Template,expression){
	this.needs = {};
	expression = expression.split(/\s+/);
	this.name = Noodles.Utilities.parseType(Template,expression[0]);
	if(this.name.type !== "object"){
		Noodles.Utilities.warning(Template,'SetARegEx tag has bad syntax, the name must be an identifier');
		this.skip = true;
		return;
	}
	this.value = Noodles.Utilities.parseType(Template,expression[2]);
	this.options = typeof expression[3] === "string" && expression[3].length > 0 ? expression[3].toLowerCase() : false;
	if(this.value.type === "string"){
		this.regex = this.options ? new RegExp(this.value.execute(),this.options) : new RegExp(this.value.execute());
	}
	else if(this.value.type === "object"){
		this.regex = false;
		this.needs = Noodles.Utilities.mergeObjectWith(this.needs,this.value.needs);
		this.modifies = {};
		this.modifies[this.value.order[0]] = true;
	}
	else{
		this.skip = true;
		Noodles.Utilities.warning(Template,'SetARegEx tag has bad syntax, the value must receive a string or object');
		return;
	}
}
/*--module--
name: SetARegEx
description: SetRegexp method
@param {Noodles.Template}
@param {expression}