So, I’m trying to find the single bracket here in either location (note the bold single bracket):
[[ http://www.example.com/ [ [[image:http://www.example.com/images/logo.gif%5D%5D ] ]]
Keep in mind, I may have data like:
[[ http://www.example.com/ ] ]]
or:
[[ [ http://www.example.com/ ]]
if implemented use look-ahead and look-behind assertions
in perl:
/(?<!\[)\[(?!\[)/see http://www.regular-expressions.info/lookaround.html for further information