Given a string of the following:
- [download id="1"]
- [download id="1" attr=""]
- [download attr="" id="1"]
- [download attr="" id="1" attr=""]
ID is always a number. I need a regular expression that will always give me that number to be used via PHP preferably demonstrated via http://www.solmetra.com/scripts/regex/index.php.