Regex CLI Utility
Install
cargo install --git https://github.com/mass10/r-regex --branch main
Or download single binary file.
wget https://github.com/mass10/r-regex/releases/latest/download/r-regex
r-regex --string "123-4567" --regex "([0-9]+)$"
echo "123-4567" | r-regex --regex "([0-9]+)"
r-regex --string "refs/tags/v1.0.0" --regex "/v([0-9.]+)$"