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