Required Preg_match() format for matching

I have to find [[abc:abc abc]] in a string (Ex. this is just a test [[abc:abc abc]] some text after the word )
I m using preg_match(). but it is giving error.
Kindly help.

Show us what you have so far.

I m using this.

$str = ‘aa [[abc: 2008]] aa’;
$matches =‘[{2}abc:[a-zA-Z0-9]$]{2}’;
$res = preg_match($matches, $str);

Try this

$s = "this is just a test [[abc:abc abc]] some text after the word";
$pattern = '#(\\[\\[abc:[^\\]]+\\]\\])#i';
if (preg_match($pattern, $s, $m))
{
        print_r($m[1]);
}

Thanks Its working.