Please help, how to choose data between tags </a> and [/caption] ?
I have this code
[caption id="attachment_10925" align="alignnone" width="580"]<a href=""><img class="size-full wp-image-10925" title="image title" src="" alt="" width="580" height="461" /></a> Текст который нужно выбрать[/caption]
preg_match_all("/<\/a>([^caption]*)\[\/caption\]/umi", $someBigTextForMatching, $out); echo '<pre>'; print_r($out[1]); echo '</pre>';- Alexey Shimansky<\/a>(.*?)\[\/caption\]..... although I see the answer to the similar written exactly - Alex Shimansky