The regex module provides regex utilities.
Encodes a string for use in a regex when performing a match or replace
var encoded = $.telligent.evolution.regex.encode(val)