If this was in an ExtractText processor, your regular expression may have 
included groups (segments contained in “()”) — if this is the case, each group 
will be extracted and captured as well.

From the ExtractText documentation:

> The first capture group, if any found, will be placed into that attribute 
> name.But all capture groups, including the matching string sequence itself 
> will also be provided at that attribute name with an index value provided, 
> with the exception of a capturing group that is optional and does not match - 
> for example, given the attribute name "regex" and expression "abc(def)?(g)" 
> we would add an attribute "regex.1" with a value of "def" if the "def" 
> matched. If the "def" did not match, no attribute named "regex.1" would be 
> added but an attribute named "regex.2" with a value of "g" will be added 
> regardless.


Andy LoPresto
[email protected]
[email protected]
PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4  BACE 3C6E F65B 2F7D EF69

> On Mar 6, 2017, at 4:26 PM, srini <[email protected]> wrote:
> 
> Why,
> I have a attribute called original_flowfile, but I noticed these two extra
> got created. Why?
> 
> original_flowfile.0
> original_flowfile.1
> 
> thanks
> Srini
> 
> 
> 
> --
> View this message in context: 
> http://apache-nifi-developer-list.39713.n7.nabble.com/I-have-attribute-called-X-But-X-0-and-X-1-also-got-created-Why-tp15062.html
> Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to