On Friday 20 of March 2009 12:36:38 Bruno Haible wrote: > Jim Meyering wrote: > > Perhaps "~" isn't the only character we should treat that way. > > I'd say that '~' is pretty special here because it's used as backup file > suffix by many text editors. Which is not the case for '_', '-', and > others.
Definitely. The main difference is that '_' and (especially) '-' are version number's separators, we can't easy cut them off. AFAIK '~' is never used as a version separator. But it's sort of optimization problem. If anybody has a better idea about the regular expression, send it to me. I'll compare it with the current implementation and other known implementations and send you the result. Kamil