nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Wing <jvw...@gmail.com>
Subject Re: File Filter regular expression - GetFile
Date Wed, 28 Jun 2017 13:41:50 GMT
The .* in your regular expression is allowing all characters.  You can
escape this and specify a literal dot with a backslash, like \.

Try [ab]+\..* for example.


On Wed, Jun 28, 2017 at 2:55 AM, shankhamajumdar <
shankha.majumdar@lexmark.com> wrote:

> Hi,
>
> Just a small modification, I am using ListFile processor. For example in
> the
> directory I have 5 files which are
> test.txt, ab.txt, ab1.txt. If I use [ab].* in the regular expression I am
> getting both the files i.e. ab.txt and ab1.txt. But I just want to get
> ab.txt not ab1.txt. Please let me know how to resolve this.
>
> Regards,
> Shankha
>
>
>
> --
> View this message in context: http://apache-nifi-developer-
> list.39713.n7.nabble.com/File-Filter-regular-expression-
> GetFile-tp16279p16280.html
> Sent from the Apache NiFi Developer List mailing list archive at
> Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message