For example ls
may return string
/boot/vmlinuz-5.9.12-100.fc32.x86_64
want a regular expression tool to extract 5.9.12-100
Duplicate of question but additional subject A regex for version number parsing
But because of SO, I can't add my answer...