I'm assuming that you've got a clip-on type of regulator. Generally you will have to turn the regulator switch to the off position and then either push the switch lever downwards or push it inwards to release the locking mechanism from the cylinder valve.