Would it not just be easier to eliminate all characters you deem not to be "stupid" and then match against the remainder?
ie. /[^a-zA-Z.]+/ and then go from there? On Wed, Jul 5, 2023 at 3:23 PM Jonathan Buzzard < [email protected]> wrote: > > After another support incident that eventually transpired to be down to > the user using what I will call stupid characters in their filenames (we > include a section on not doing this in our mandatory training so no > excuse) I have been musing on using the policy engine to periodically > produce lists of files that have stupid characters in their filenames so > we can proactively educate the users and get them to rename their files > to something sensible :-) > > The issue is of course the stupid characters include all the regular > expression wildcard characters in addition to \n, \r and backticks. I am > coming up short on escaping them correctly in REGEX() for the policy > engine. > > The documentation appears to be devoid of help on the subject, because > of course only an fool would be including these characters in their > filenames... > > Anyone any idea on how to do this? > > > JAB. > > -- > Jonathan A. Buzzard Tel: +44141-5483420 > HPC System Administrator, ARCHIE-WeSt. > University of Strathclyde, John Anderson Building, Glasgow. G4 0NG > > _______________________________________________ > gpfsug-discuss mailing list > gpfsug-discuss at gpfsug.org > http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org >
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org
