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.
最初のタグではなく、タグ間のすべてのデータを取得する必要がある HTML を追加したようなページがあります。現在私は使用しています
<?php([^<]*?)\?>/"
しかし、それは最初のものをつかんで停止します。何か助けはありますか?
関数を調べますpreg_match_all。
preg_match_all
これを使ってpreg_match_all()
preg_match_all()
preg_match_all("/<?php([^<]*?)\?>/siU",$html,$output); print_r($output[1]);