字符串匹配

a = 'string'

a =~ /^str/

a =~ /str/

原文地址:https://www.cnblogs.com/qinyan20/p/3656738.html