标签: php preg-match preg-match-all
如何使pregmatch与'location: '和'Location: '匹配?
'location: '
'Location: '
preg_match('#Location: (.*)#', $curl, $result)
答案 0 :(得分:0)
只是让正则表达式不区分大小写:
preg_match('#Location: (.*)#i', $curl, $result) // here __^