Skip to main content
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


gio
Contributor
Forum|alt.badge.img+15
  • Contributor

afbeelding

2 replies

Forum|alt.badge.img+2
  • August 25, 2022

@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


gio
Contributor
Forum|alt.badge.img+15
  • Author
  • Contributor
  • August 26, 2022

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.).

 

'


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings