data.to_enum(:scan,/(#entity[0])/i).map do |m,| p $`.size 如何在正则表达式中使用动态变量?#entity[0]返回一个值,但在上述语法中,#entity[0]被视为正则表达式中的字面量。