Skip to main content

函数原型

func (s1 string) matches(s2 string) bool

参数介绍

举例

  • Response
  • 匹配语句:"root:.*?:[0-9]*:[0-9]*:".matches(response.body_string)
  • 输出结果:true
  • 匹配语句:"Accept-Enco.*".matches(response.headers["Vary"])
  • 输出结果:true