我需要你的帮助,我不能自己做模式。PHP Preg_match_all正则表达式模式
我获得了该文件:
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="|"'
感谢很多的帮助。
完美! (?*?)=(?:(?:\'(。*?)\')|(?:“(。*?)”))#'但是可以做到这一点你们比较好,谢谢! – timmalos