I'd like to match if x > 64 then return 0, 0 end inside this string.
function if x > 64 then return 0, 0 end return 1, 0 end
I'm using if(.*)then(.*)end. However, this matches: if x > 64 then return 0, 0 end return 1, 0 end, which is one end too many.