On Sat, Jan 26, 2013 at 4:48 AM, Staffan Tylen <firstname.lastname@example.org> wrote:
Does anybody have a neat way to ensure that a given string only contains valid file name characters? I'm thinking of using translate() to replace illegal characters with e.g. an underscore, but what is legal and not legal? The list of illegal character is likely to be very long. All suggestions are welcome. Thanks.