in reply to Re^2: conditional regex
in thread conditional regex

So could
while(<>) { print "yes\n" if /^y$/i || /^yes$/i; }
while(<>) { print "yes\n" if /^y$/i; print "yes\n" if /^yes$/i; }

By the way, useless capturing greatly slows down pattern matching.