Vlad Vlad
Vlad Vlad

Reputation: 170

I am getting three attributes instead of one. ExtractText Processor NIFI

So I am trying to extract attributes from file with the line format NUMBER/TEXT, for example like this:

9999, text

I am creating attribute number with the regular expression like this (\d{4})

But instead of one attribute number, I am getting 3 attributes number, number0 and number1.

What am I doing wrong?

Thank you beforehand!

Upvotes: 0

Views: 291

Answers (1)

tonykoval
tonykoval

Reputation: 1232

Use regular expression \d{4} without brackets. It returns only one attribute number.0

Upvotes: 1

Related Questions