walt wrote: if m = /^(((\d+)(?:\.\d+)+)-(\w+)(-\S+)?) (\w+)$/.match(uname) Something like: if m = /^(((\d+)(?:\.\d+\w?)+)-(\w+)(-\S+)?) (\w+)$/.match(uname) should do the trick (can't test it here)... Sascha -- http://yoyodyne.ath.cx