in reply to Re: A silly reg exp question
in thread A silly reg exp question

s/1/-/g, s/2/--/g, s/3/---/g, s/4/----/g, s/5/-----/g, s/6/------/g, s/7/-------/g, s/8/--------/g;

This is the exact way I have done it :). When you are lazy you end up with code like this. To be sure: this works.