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

Nick Allen commented on METRON-2002:
------------------------------------

This *may* be related or have been fixed by METRON-1922 and 
[https://github.com/apache/metron/pull/1291,] but I have not confirmed.

> Number of escape backslashes in REGEXP_MATCH Stellar function is inconsistent
> -----------------------------------------------------------------------------
>
>                 Key: METRON-2002
>                 URL: https://issues.apache.org/jira/browse/METRON-2002
>             Project: Metron
>          Issue Type: Bug
>            Reporter: Stefan Kupstaitis-Dunkler
>            Priority: Minor
>
> When I want to escape a character in REGEXP_MATCH I need to escape it with 2 
> backslashes in the Stellar command line and 4 backslashes when you actually 
> deploy it via the Metron config. Ideally it should be only one backslash in 
> both cases, but a consistent behaviour as a starting point and a mention in 
> the docs to escape the escape characters would be sufficient.
> Simple example:
>  * 
> {code:java}
> ip_address := '10.10.10.10'{code}
>  * This matches on Stellar command line interface:
> {code:java}
> REGEXP_MATCH(ip_address, 10\\.10\\.10\\.10){code}
>  * This works when configured for a running topology:
> {code:java}
> REGEXP_MATCH(ip_address, 10\\\\.10\\\\.10\\\\.10){code}
>  * Any other amount of slashes in both cases produces an error or no match.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to