this is some hard, I have solutions for this with srtpos, but it's ugly, I need help to do it with preg_pos or preg_match . I have a string like below:
$text="Some 
[parameter=value\[anoter value|subparam=20] with  or 
[parameter|value\]anoter value|subparam=21|nothing] or 
[parameter=value\[anoter value\]|subparam=22] ";
... I would like to get the following result:
array (
  0 => '=value[anoter value|subparam=20',
  1 => '|value[anoter value|subparam=21|nothing',
  2 => '=value[anoter value]|subparam=22',
)
I mean i know my parameter: [parameter---get this section---] after 'parameter' all text can be to change, and it can contains escaped: bracket - square bracket - parenthesis - ampersand. thanks !
 
     
    