をインスタンスを1つだけ変更するには、私はこのようなhtmlコードの束を持っている:正規表現は、特定の文字列の前にofcharacter
<a href="http://example.com/project-a" title="Project A (test)">Project A (test</span></a>
<a href="http://example.com/project-b" title="Project B (test)">Project B (test</span></a>
<a href="http://example.com/project-c" title="Project C (test)">Project C (test</span></a>
<a href="http://example.com/project-d" title="Project D (test)">Project D (test</span></a>
あなたはそれを持って、各行の終わりに見ることができます:
(test</span></a>
ただし、各ライン上の他の開口部、ブラケットがある見ることができるので、私はトンを推測
<span class="example">
を:
私はこの開口部ブラケットを変更したいのですが彼の基準は、閉鎖スパンタグを変更する必要がある前に、最初のオープニングブラケットです。
regexとphpでこれを行う方法はありますか?