What does "$line =~ /\-?(?:\d+\.?\d*|\.\d+)/g mean in perl?

Update: Could someone please explain to me character by character?
1 answer 1