Question

Stringreplacer, regexp with captures. Test conditional using capture(s) .....not possible? (image) the righthand side works. I can use the captures. In the lefthandside it seems not able to catch the capture(?) Is this a limitation? GREE


Badge +3

afbeelding


2 replies

Badge +2

@gio​ Perhaps a little more explanation of the problem and maybe an example of the data and workspace would help someone point you in the right direction

Badge +3

Hi MArkatsafe.

 

Transformer: Stringreplacer with regexp replace.

 

For instance fegexp : bla(.+)bla has 1 capture.

In the condition side i have this test

\\1=@Value(_attr_name).

The "\\1" is a reference to the first capture in he regexp.

It does not process.

 

In the text to replace side the references to the captures do.

 

So, is it a limitation?

 

IS conditional regexp replacement thereby flawed?

 

Greets.

 

I dont think a workspace is required. It is just 1 transformer that's the issue.

 

(course i tackled it differently by now. Maybe ill try it in latest version.).

 

'

Reply