この preg_match スクリプトについて助けが必要です。bbcode 内にあるテキストが必要です。したがって、これは文字列になります。[caption id="attachment_123" align="alignleft" width="100" caption="This is the text that I want"]
これをどのように行いますか?重要なことは、id や align などの値が常に同じではないということです。私は何かを試しましたpreg_match('#\[caption(?:.*?)caption=\"(.*?)\"\]#s',$result,$array);
ご協力ありがとうございました!フィフェイニ