Adding back fix from RT#67355

For https://rt.cpan.org/Public/Bug/Display.html?id=99935 . I just added back the regex. Cheers.