nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Bende <bbe...@gmail.com>
Subject Re: ReplaceText processor - regex search and replace text captured
Date Wed, 18 May 2016 02:03:15 GMT
Hi Ashraf,

Could you supply an example of the first line of input and explain what
you'd like to replace?

It would be helpful to determine the appropriate search value.

-Bryan

On Mon, May 16, 2016 at 1:30 PM, Ashraf Hasson <AHasson@windmobile.ca>
wrote:

> Hi everyone,
>
>
> I'm trying to replace a specific character in a file which occurs on the
> first line only but can't seem to figure it out, here are the details of
> ReplaceText processor I'm using:
>
>
> Search Value: (?s:"% '('Effective Bytes',' Network Bytes')'"$)
>
> Replacement Value: ${'$1':replace(',','-')}
>
> Replacement Strategy: Literal Replace
>
> Evaluation Mode: Line-by-line
>
>
> The output is sent to PutHDFS but the file content are not changed! I've
> tried other variations of the above regex to no avail. I'd really
> appreciate any help please.
>
>
> Thanks,
>

Mime
View raw message