4 Replies Latest reply on Dec 5, 2012 6:32 PM by DrClap

    Java regex for filenames or filetypes matching

      I am trying to write a java regular expression where my application should restrict the names of the files or filetypes mentioned in the regex from being attached to an email. I started the regex like this,


      Is this correct?. Right now it is not working(matching). Not sure where I am going wrong. Also, how can I add new file types or filenames to this expression incase if I want to expand this regex. Like say, I want to add the vcf file types also here in this regex, how should I do that? Also, If I need to add the filenames, say abc.bmp from being attached, how and where should I include that filename in this regex?. Any help is greatly appreciated as I am new to this regex.