Updated to parse a slash as either division or regex.