Ruby's match method on string, when passed a string, does not escape things like [], so explicitly escape prior to calling match