Skip to main content

Hi FME experts,

 

 

I'm having difficulties updating below:

 

Left is what I currently have, right is what I'd like to have.

Have
Want


Toi et Moi (Villa)
(Villa) Toi et Moi


Wilgenerf ('t) Landhuis
('t) Wilgenerf Landhuis


Gheestelic Hof (Het)
(Het) Gheestelic Hof

 

So if it finds anything in between brackets, take that and put it in front of the string.

 

I've been trying the StringReplacer with the following RegEx: (\\(.*\\)) - but no luck so far.

Cheers,

 

Ed

Try the following in a StringReplacer. Text to replace:

(.*)\s*(\(.*\))

Replacement text:

\2 \1

0684Q00000ArLBMQA3.png


Try the following in a StringReplacer. Text to replace:

(.*)\s*(\(.*\))

Replacement text:

\2 \1

0684Q00000ArLBMQA3.png

Hi @david_r

 

 

I'm getting \2 \1 as a string instead of referring to the capturing groups?

 

0684Q00000ArMgiQAF.png


Strange. Which FME version are you running?


Beta 2019.0.0.0

 

Mmmm, could that be it? Let me try a different version.

Beta 2019.0.0.0

 

Mmmm, could that be it? Let me try a different version.
I did my testing with the very latest FME 2018, for what it's worth.

 

 


@david_r

It appears the 2019 beta is the problem!

 

2018 works:


@david_r

It appears the 2019 beta is the problem!

 

2018 works:

Fantastic! Sounds like a mail to Safe support is in order...

Reply