字符串匹配

a = 'string'

a =~ /^str/

 

a =~ /str/

posted on 2014-04-10 16:11  qinyan20  阅读(138)  评论(0)    收藏  举报