-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Jean-Sebastien Vachon Sent: Wednesday, April 12, 2006 3:38 PM To: boost-users@lists.boost.org Subject: [Boost-users] Validating file names using regex
I am sure what I am looking for exist somewhere but I haven't been able to find anything that works in boost::regex.
What I am looking for is a regular expression that will validate a filename according to the specification of the OS (UNIX systems and Windows).
I would be very grateful if someone could provide me with these two expressions (one for Linux and one for Windows).
[Nat] This isn't what you're asking for -- but would it work to instantiate a boost::filesystem::path with the putative pathname in question and an appropriate checker?