...which is a part of a bbcode replace script;
// Search for this...
$replacewhat = array(
'/\(.+?)\[\/img\]/i',
'/\+) height=([0-9]+)\s*\](.+?)\[\/img\]/i',
'/\+)\s*\](.+?)\[\/img\]/i',
'/\+) width=([0-9]+)\s*\](.+?)\[\/img\]/i',
'/\+)\s*\](.+?)\[\/img\]/i',
);
// ...and...