How can download all urls to follow a format like as
when XXX could be any number between 0-999, its posible?
You can simply use Bash's range syntax to specify the URL:
This would be equal to the command written out like this (leaving most of the URLs in between out, because I'm too lazy to type 1000 URLs):
wget 'http://www.example.com/foo0' 'http://www.example.com/foo1' ... 'http://www.example.com/foo42' ... 'http://www.example.com/foo999'