From: Aaron Wells 

  True. It could get hairy. Unicode is a pretty vast landscape, and I think if 
you only want ASCII word characters to count as things that could be in a 
filename, your original [A-Za-z0-9_] is your best bet. Thanks to the others for 
their comments. As Ken says: there are probably more ways to code this.




    Another (shorter) way of writing that can be:

    /^\w+$/aa

    Where /aa makes \w mean just [A-Za-z0-9_].

    a = ASCII and aa is used for double protection, so only ASCII is used.

    --Octavian

Reply via email to