Skip to main content

Hi all,

 

 

I have something weird going on in my StringReplacer.

E.g. a simple string goes in.

 

StringReplacer settings:

 

RegEx captures whole string in capture group 1, then as a replacement I use capture group 1, followed by the string "finished"

 

 

In the output the string "finished" is somehow duplicated.

 

Magic / bug / am I doing something wrong?

 

Cheers,

 

Ed

 

I'd try altering your regex to (.+) - one or more rather than zero or more


I'd try altering your regex to (.+) - one or more rather than zero or more

That worked, thank you.

 

 

But why? I don't get it.

That worked, thank you.

 

 

But why? I don't get it.

Each occurrence of the match is replaced, since your regex matched with nothing, the nothing also got replaced with nothing and the text specified


Reply