You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Adam Williams <aa...@outlook.com> on 2015/09/23 19:01:42 UTC
ExtractText Capturing Groups Limit (1-40)
I've been playing with the ExtractText processor and added lots of capturing groups, for a single property i split into ~50 capturing groups, but the processor shows a warning that we can only have between 1 & 40 capturing groups. Is it wrong to go over this? Just parsing a wide CSV file with a regex, but I've thought of modifying the StandardValidators.createRegexValidator from 40 to 50 for now in the below class and rebuilding.
https://github.com/apache/nifi/blob/f044ba5d45150a0d17990b4c1a304fbbdf35a010/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExtractText.java
Re: ExtractText Capturing Groups Limit (1-40)
Posted by Joe Witt <jo...@gmail.com>.
Adam,
We really should just allow it to be configurable. We tend to be
conservative on such cases but you should have control. Interested in
filing a JIRA?
Thanks
Joe
On Wed, Sep 23, 2015 at 10:01 AM, Adam Williams
<aa...@outlook.com> wrote:
> I've been playing with the ExtractText processor and added lots of capturing
> groups, for a single property i split into ~50 capturing groups, but the
> processor shows a warning that we can only have between 1 & 40 capturing
> groups. Is it wrong to go over this? Just parsing a wide CSV file with a
> regex, but I've thought of modifying the
> StandardValidators.createRegexValidator from 40 to 50 for now in the below
> class and rebuilding.
>
> https://github.com/apache/nifi/blob/f044ba5d45150a0d17990b4c1a304fbbdf35a010/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExtractText.java