Quote user provided string to use in regex.