#!ruby -p0 gsub(/.+/){%w(YES Yes yes NO No no)["578#{'\x10\x18\x13'[i=$_[2]%3]}"[$&]?i:i+3]}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page