I have those tags in a text pulled from database
[ATTACH=CONFIG]9[/ATTACH] and I am trying to extract the number, 9 in that case.
My first try
$images = preg_match_all(#\[ATTACH.*?\[/ATTACH\]#si, $article['pagetext'], $images['matches']);
$image = $images['matches'][1][0];
is not returning anything.
Can someone please help me with proper regex? thank you.
I have tested the following code with php5.4.5: