You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2025/06/18 12:54:00 UTC
[jira] [Commented] (NIFI-14672) Support duplicate mapped values in replaceByPattern
[ https://issues.apache.org/jira/browse/NIFI-14672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17982702#comment-17982702 ]
ASF subversion and git services commented on NIFI-14672:
--------------------------------------------------------
Commit 09aea76bb52626b87f16e7a4b24e159d6e193dfc in nifi's branch refs/heads/main from Alaksiej Ščarbaty
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=09aea76bb5 ]
NIFI-14672 Support same replacement values in replaceByPattern
Signed-off-by: Pierre Villard <pi...@gmail.com>
This closes #10027.
> Support duplicate mapped values in replaceByPattern
> ---------------------------------------------------
>
> Key: NIFI-14672
> URL: https://issues.apache.org/jira/browse/NIFI-14672
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Alaksiej Ščarbaty
> Assignee: Alaksiej Ščarbaty
> Priority: Major
>
> Currently each {{mappedTo}} value in `replaceByPattern` must be unique. What it means, is that a pattern like this {{a:res,b:res}} won't map both {{a and b}} to {{{}res{}}}.
> The function should support mapping to the same value multiple times.
> If {{{}str = a{}}}, then {{${str:replaceByPattern('a:res,b:res')}}} should return {{res}}
> If {{{}str = b{}}}, then {{${str:replaceByPattern('a:res,b:res')}}} should return {{res}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)