Added backslashes to the start/end in the preg pattern, also escaped a forward slash.