Can some one explain what the following regexp mean
1) ~ s/\/([^\/]*)$/:\1/
2) ~ s/(.*)\/([^\/]*)$/\1\/\2/

Thanx in Advance
--Vijay