m{\[img]([^[]*(?:\[(?!img])[^[]*)*)\[/img]}g [download]
In reply to Re: Possible with a regex? by JavaFan in thread Possible with a regex? by ultranerds