I have a string.
String <- "like_a_butterfly_sting_like_a_bee_Float"
I can make the first prefix become the last suffix by pivoting on the first underscore.
gsub("^([^_]*)_(.*)$", "\\2_\\1",String)
How can I make the final suffix become the first prefix by pivoting on the last underscore?
Desired result: "Float_like_a_butterfly_sting_like_a_bee"