MDL-42491 libraries: adjusting regular expression matching