String str = "start [IMG:http://www.0570fc.com/upfiles/WebEditorfiles/newsfiles/2012116155320299.jpg] 分割线 [IMG:http://www.0570fc.com/upfiles/WebEditorfiles/newsfiles/2012116155320299.jpg] end";
System.out.println(str.replaceAll("\\[IMG:.+\\]","图片")); //贪婪 .+
System.out.println(str.replaceAll("\\[IMG:.+?\\]","图片")); //懒惰 .+?
运行结果: