Reluctantly match end of regex

Only consume / if they are escaped before the ending /

Refs #47