/** Regular expressions helper functions **/

function escapeRegExPattern(str) {
	return str.replace(/([\\\^\$*+[\]?{}.=!:(|)])/g,"\\$1");
}

