Let's say I have a string "abc_123_def" and I want to "remove" "abc_" and "_def" and be left with "123".
I currently have two replace statements:
s = "abc_123_def"
s.replace("abc_",'')
s.replace("_def",'')
Is there a better, one-liner way to do so?