And of course I didn't test the regexes. Those I provided would not match for "mgr-osa-dispatcher". .*-?mgr-.+ .*-?rhnlib-.+ .*-?spacewalk-.+ .*-?suseRegisterInfo .*-?zypp-plugin-spacewalk .*-?uyuni-.+ Most likely is more correct. I any case I think you can understand the idea :-)