How do you use regular expression in bash to search any given string and remove occurrence of particular word? This is the expression I've come up with
^([A-Za-z-]+)(-).*(el6.*)$
What I would like to accomplish is, in a given string like cjkuni-ukai-fonts-0.2.20080216.1-35.el6.noarch, the expression should remove cjkuni-ukai-fonts- and el6.noarch, and leave only 0.2.20080216.1-35. As I'm very limited in what I can install on the system, I cannot use perl or other non basic commands. Any help would be appreciated.
P.S : I've tried sed, but I couldn't get it work.
perlis not installed? Really?