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

Pierre Villard commented on NIFI-2072:
--------------------------------------

[~jfrazee] I was looking at this JIRA and I agree that it would be a great 
addition. However it seems this is not possible to get the group names from the 
Pattern expression unless if we are going a bit nasty...
http://stackoverflow.com/questions/15588903/get-group-names-in-java-regex

> Support named captures in ExtractText
> -------------------------------------
>
>                 Key: NIFI-2072
>                 URL: https://issues.apache.org/jira/browse/NIFI-2072
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Joey Frazee
>
> ExtractText currently captures and creates attributes using numeric indices 
> (e.g, attribute.name.0, attribute.name.1, etc.) whether or not the capture 
> groups are named, i.e., patterns like (?<name>\w+).
> In addition to being more faithful to the provided regexes, named captures 
> could help simplify data flows because you wouldn't have to add superfluous 
> UpdateAttribute steps which are just renaming the indexed captures to more 
> interpretable names.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to