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

Mika Borner commented on NIFI-4094:
-----------------------------------

Can't be easily fixed as this happens in  java.util.regex

http://www.docjar.com/html/api/java/util/regex/Matcher.java.html

778 if (ASCII.isLower(nextChar) ||
779                               ASCII.isUpper(nextChar) ||
780                               ASCII.isDigit(nextChar)) {
781                               gsb.append(nextChar);

> GrokReader does not allow named capture groups with underscores in name
> -----------------------------------------------------------------------
>
>                 Key: NIFI-4094
>                 URL: https://issues.apache.org/jira/browse/NIFI-4094
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.3.0
>            Reporter: Mika Borner
>            Priority: Minor
>
> When writing a regular expression with a named capture group, underscore 
> can't be used.
> Typically, underscore is a valid character for capture groups. As avro also 
> supports underscores, and GrokReader is used to write into avro schemas, this 
> should be fixed.
> Example of non-working regex:
> (?<my_namedcapturegroup>.*)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to