Can I connect my own gas dryer or range with a flex connector?
A true like-for-like swap using a NEW, correctly sized, listed connector onto an existing properly valved stub is the one gray zone — and even there, a leak check with proper solution (not a match, ever) is mandatory, and many cities still technically require a permit. New connections, moved appliances, or anything involving the hard pipe: licensed work, no gray zone.