Power Arduino via USB without computer [Question]

I cut a USB A USB B cable
Connected black to negative
Red to 5V of a good switching regulator
made sure the other wires are properly isolated
And it works fine 8)

Best regards
Jantje