【发布时间】:2012-09-03 06:59:25
【问题描述】:
我需要你的帮助来完成我自己无法完成的模式。
我得到了这个文件:
description1="SIOUH : Authentification Cerbere - Acces"
description2="Acces formulaire authentification SIOUH"
addheader="Pragma: no-cache "
method="get"
url="${AUTH_URL}/login/LoginDispatchAction.do?appId=${APP_ID}&backURL=${APP_URL_ENC}"
errormessage="Phase 1 : Impossible atteindre le formulaire authentification CERBERE pour SIOUH"
serveur="yes"
verifypositive="loginConnectAppliForm"
logrequest="yes" logresponse="no" />
我有这个完美匹配的 preg_match_all :
preg_match_all ( '#(.*?)="(.*?)"#s', $contents, $matches, PREG_SET_ORDER ); //Chaque option
我的问题是我可以有简单的引号而不是双引号,我该如何改变我的模式来处理它? 例如,我需要像所有其他人一样抓住这条线:
parseresponse='name="conversationId" value="|"'
非常感谢您的帮助。
【问题讨论】:
标签: php regex preg-match-all