https://bugs.ruby-lang.org/issues/17507 の原因調査 TargetStr = "a-x-foo-bar-baz-z-b" worker = lambda do # For more hits, use File.read here instead of TargetStr m = TargetStr.match(/foo-([A-Za-z0-9_\.]+)-baz/) # more cases in the []+ means more hits raise "Error, #{m.inspect}" if m[1].nil? File.exist? "/…