https://bugzilla.novell.com/show_bug.cgi?id=465113 User jengelh@medozas.de added comment https://bugzilla.novell.com/show_bug.cgi?id=465113#c9 --- Comment #9 from Jan Engelhardt <jengelh@medozas.de> 2009-01-21 09:23:53 MST --- Upstream is to decide what goes into a SUBLEVEL or not. Though it never happened, I think, in my humble opinion, that it is most wise and foresighted to split, or substitute, on non-words rather than only-dots. $ echo '2.6.29a.15-rc1' | perl -lpe 's/^(\w+)\W+(\w+)\W+(\w+)(.*)/$1 $2 $3 $4/' 2 6 29a .15-rc1 $ echo '2.6.29-rc1' | perl -lpe 's/^(\w+)\W+(\w+)\W+(\w+)(.*)/$1 $2 $3 $4/' 2 6 29 -rc1 I hope this regex now does the job, correctly so. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.