Regexp.match() does not support blocks on ruby<=1.8