regexp compatible with < 5.14 now