fix Regexp error for ruby version < 2.0.0