What legislation applies to the rest of the United Kingdom?

This is dependent upon which part of Britain one is referring to. In Scotland, the Building (Scotland) Act 2003 and Building (Scotland) Regulations 2004 apply. In Northern Ireland, the Building Regulations (Northern Ireland) Order 1979 and Building Regulations (Northern Ireland) 2000 apply.