所以我得到了這一點:PHP正則表達式GET支架衝突
$output = "bla bla {_here I am (lots of things) can happen here! it's ok} bla bla";
@preg_match_all('/.*{_([^}]*)}/',$output, $conditions);
結果如預期,直到我們有多個支架。 我想要得到的字符串的內容:
$output = "bla bla {_here I am (lots of things) {conflict} can happen here! it's ok} bla bla"
@preg_match_all('/.*{_([^}]*)}/',$output, $conditions);
我想獲得對應於一個括號內容的另一個 結果應該是這樣的:
1. {_here I am (lots of things) {conflict} can happen here! it's ok}
2. {conflict}