重要的正则匹配

1、匹配固定标签下中的值   ([\\S\\s]*?)

  "<p class=\"wt_fc_c0_i_day \">([\\S\\s]*?)</p>"

 

2、匹配元素为data-temp的值

  "data-temp=\"([\\S\\s]*?)\""

3、匹配 .*?  src=任意值中alt的值  .*?

  <img class=\"slider_whicon png24\" src=\".*?\" height=\"128\" width=\"128\" alt=\"([\\S\\s]*?)\">

posted on 2015-07-07 17:31  创世无神_攻城狮  阅读(128)  评论(0编辑  收藏  举报

导航