Re: ReplaceTextWithMapping how to regex

2017-04-12 Thread Mika Borner
No problem :-) Ok, it works. And now I also understand how the regex is applied. Thanks! Mika> On 04/12/2017 06:46 PM, Andy LoPresto wrote: Mika, Apologies, that autocorrected to “Mike”. Andy LoPresto alopre...@apache.org /alopresto.apa...@gmail.com

Re: Aw: ReplaceTextWithMapping how to regex

2017-04-12 Thread Mika Borner
a look at: https://github.com/uwegeercken/nifi_processors rgds, Uwe *Gesendet:* Mittwoch, 12. April 2017 um 18:40 Uhr *Von:* "Mika Borner" *An:* users@nifi.apache.org *Betreff:* ReplaceTextWithMapping how to regex Hi all I'm not sure I understand how the ReplaceTextWithMapping

Re: ReplaceTextWithMapping how to regex

2017-04-12 Thread Andy LoPresto
Mika, Apologies, that autocorrected to “Mike”. Andy LoPresto alopre...@apache.org alopresto.apa...@gmail.com PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69 > On Apr 12, 2017, at 9:46 AM, Andy LoPresto wrote: > > Hi Mike, > > If you want to replace “value1” only when it is

Re: ReplaceTextWithMapping how to regex

2017-04-12 Thread Andy LoPresto
Hi Mike, If you want to replace “value1” only when it is preceded by “key=“ and have the result be “key=replacementvalue1”, try this pair of configuration values: regex: (?<=key=)(\S+) matching group: 1 The (?<=…) construction is a lookbehind, so the provided sequence will only match if it fol

Aw: ReplaceTextWithMapping how to regex

2017-04-12 Thread Uwe Geercken
,   Uwe     Gesendet: Mittwoch, 12. April 2017 um 18:40 Uhr Von: "Mika Borner" An: users@nifi.apache.org Betreff: ReplaceTextWithMapping how to regex Hi all I'm not sure I understand how the ReplaceTextWithMapping processor works. Let's say my flowfile content looks like:

ReplaceTextWithMapping how to regex

2017-04-12 Thread Mika Borner
Hi all I'm not sure I understand how the ReplaceTextWithMapping processor works. Let's say my flowfile content looks like: xyz key=value1 foo bar value1 My mapping file looks like: value1replacementvalue1 value2replacementvalue2 I just want to replace the occurrence of