Thanks for your reply!
But give me some credit...
If you try this on a single line that has 2 or more tags, it gets confused.
it matches the first opening, with the last closing bracket.
so,
---cut here---
<?php
$string="blah [some text] foo [more text] bar";
preg_match_all('/[.*]+/i',$string,$matches);
print_r($matches);
---cut here---
prints:
---cut here---
Array
(
[0] => Array
(
[0] => [some text] foo [more text]
)
)
---cut here---
this is not the right think to do 🙂
Anything else?