Page 1 of 1

Regex for Exclude filter

Posted: Mon Mar 18, 2019 11:05 am
by merio
I have a create file list I am using and cannot get the regular expression to work for paths I want to exclude.

We have several folders I want to exclude that contain the names moved,archive,complete

For the File Monitor I have tried to use the exclude statement
.*(moved|archive|complete).*
paths are like:

\\server\share\folder\moved\1.txt
\\server\share\folder\complete\1.txt
\\server\share\folder\folder1\1.txt

I just want the create file list to include the last entry

But that does not work, but it does work when I test on one of the regular expression web sites.

Re: Regex for Exclude filter

Posted: Mon Apr 22, 2019 2:40 pm
by Support_Julie
Our documentation does have a few examples, but there a link that has more information for regex.

https://docs.oracle.com/javase/7/docs/a ... ttern.html

I would look at the ^ carrot. And also, you may need to use quotes or double quotes around the word “moved”
[abc] Any character except a, b, or c (negation)
X|Y Either X or Y