customize RegExp options PR by @Filirom1-patch-1