I need to extract in linux bash from a string a set of characters which are included between a static string and the first number.
A simple example should be helpful:
Base string: hello-world-my_name-1.0.jar
Static string: hello-world-
Target: my_name
I'm trying with
ls *.jar | sed 's/(?<=hello-world-)(.+?(?=-[0-9]))/\1/'
but unfortunately I can't understand where I'm wrong