With the release of macOS 10.15 Catalina, the default shell will be switched from bash
to zsh
. While reviewing some scripts and documentation, I realized that parameter expansion changes would need to be made.
Following the question bash regex to match semantic version number, I needed to update my method of collecting semantic version numbers.
In zsh
, how can I split semantic version numbers using parameter expansion?