js 正则匹配变量

var my_reg="hello";

str.match(eval("/"+myreg+"/"));
高否?富否?帅否? 否? 滚去学习!
原文地址:https://www.cnblogs.com/baixc/p/4620664.html