\[the literal [ (9110 / 1338 / 5B16)
.*any character (except for line terminators), repeated any number of times
IMGthe literal text IMG (case insensitive) .*any character (except for line terminators), repeated any number of times
Negated Character Class[^\]] \]the literal ] (9310 / 1358 / 5D16)
\]the literal ] (9310 / 1358 / 5D16)
g modifier: global. Finds all matches instead of stopping after the first
i modifier: insensitive. Matches without distinguishing uppercase and lowercase letters