Last Updated: February 25, 2016
·
750
· leoj3n

Zsh 1liner: Remove slashes from front & rear

Code:

local HEHE='/wee/oo/'
echo "${"${HEHE%/}"#/}"

Outputs:

wee/oo