On Sat, Jan 26, 2013 at 4:48 AM, Staffan Tylen <[email protected]>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.
>

I don't have a neat way, just a couple of comments.

What is illegal differs by platform of course.  Do you mean in general, or
just on Windows?

Even on Windows, the list is not very long.  I've seen lists before, I just
don't remember them off the top of my head.  Google should turn up some
hits.

--
Mark Miesfeld
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to