Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
yoursite.com/category/section/3389121/title-articleなどのパスを持つ大きなxmlファイル(> 30mb)があります
パス内のノード番号を除くすべてを削除する必要があります。おそらく正規表現を使用することを考えましたが、残りのxmlフィールドに適用されないようにする方法がわかりません。
何かご意見は?
ありがとう
PHPのSimpleXMLライブラリを使用して、必要なXMLフィールドだけを解析し、それらに対して正規表現を実行できます。これを行うために使用される構文を確認すると、SimpleXMLと呼ばれる理由がわかります。