Diving Regulations apply within the national territory and territorial waters of a country. In most cases they apply to commercial diving, public safety diving but in a few cases also to recreational diving.
There are exemptions for recreational diving in some cases where it is recognised as a self-regulated industry.
To have a global overview of diving reguations, standards, agencies and organizations, we suggest you access the Google site, updated with information from Wikipedia and other professional sources.