Let's say I have this string:
[section][module_text id="123"]text[/module][module_number id=""]000[/module][/section]
I can find each entire [module...[/module...] substring with
(\[module)(.*?)(\[\/module.*?\])
But I would like to only match the [module] string that has a digit in the id="" parameter. In this case the first [module].
I've been trying a bunch of stuff but i cant seem to get any closer.