[ 
https://issues.apache.org/jira/browse/NIFI-1624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18055545#comment-18055545
 ] 

David Handermann commented on NIFI-1624:
----------------------------------------

If the regular expression itself included a maximum limit, such as:

{noformat}
(\w{1024})
{noformat}

then the Max Capture Group Length would be ignored if configured for greater 
than 1024, or if less than 1024, it would truncate the captured value.

> ExtractText - Add option to Throw Failure if Text is greater than Capture 
> Group
> -------------------------------------------------------------------------------
>
>                 Key: NIFI-1624
>                 URL: https://issues.apache.org/jira/browse/NIFI-1624
>             Project: Apache NiFi
>          Issue Type: Improvement
>    Affects Versions: 0.4.1, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0
>            Reporter: Randy Bovay
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> ExtractText allows us to specify the "Maximum Capture Group Length"
> Occasionally I will get a text string that is greater than what I've 
> specified.
> In these unexpected situations, I would LIKE to route this to something that 
> can handle it, or throw an error so I can look into why this is larger than 
> expected.
> The ask is to make the behavior configurable on LengthExceededBehavior.  With 
> options of 'truncate' or 'failure'.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to