fix deprecated regex