Made regex compat31 compatible