v0.8.10
Supported ${name/pattern/word}, ${name//pattern/word}, ${name/#pattern/word}, and ${name/%pattern/word}
Here are the examples:
π£ echo $BASH_VERSION
0.8.10(rusty_bash)-release
### replace once ###
π£ echo ${BASH_VERSION/0/X}
X.8.10(rusty_bash)-release
### replace all ###
π£ echo ${BASH_VERSION//0/X}
X.8.1X(rusty_bash)-release
### head only replace ###
π£ echo ${BASH_VERSION/#0*8/X}
X.10(rusty_bash)-release
π£ echo ${BASH_VERSION/#release/X}
0.8.10(rusty_bash)-release
### tail only replace ###
π£ echo ${BASH_VERSION/%release/X}
0.8.10(rusty_bash)-X
π£ echo ${BASH_VERSION/%0/X}
0.8.10(rusty_bash)-release