fix 1.8 compat

Do not use named regexp to preserve 1.8 compatibility