changed lookbehind in regex to optional param