Variable Pattern Matching Constructs

${var%pattern}

${var%%pattern}


${var#pattern}


${var##pattern}