Skip to main content

Hello ,

i have attribute contains may values as

streetname (park: mo (beside))

street name (park: far away )

How could I use test filter at first to find which value contains parentheses inside it ,I mean

as (beside)

which value has no parentheses inside it

then the values that include parentheses after string as ( park: mo (beside))

i would like to extract only the word beside at new attribute .

all values include parentheses ( at the beginning but I am interested in the second parentheses ,how could I get the all values that contain two parentheses then extract the string inside the parentheses as beside word .

thanks for help

FME 2021

Hi @spiderman​ 

 

Please, see this regex to identify 

\((e^()]*)\)

Match 


Hi @spiderman​ 

 

Please, see this regex to identify 

\((e^()]*)\)

Match 

  • That what I want ,thanks.It works great ,but how could I divide them by testfilter .i need to know which one contains two parentheses and which contain only one parentheses .

  • That what I want ,thanks.It works great ,but how could I divide them by testfilter .i need to know which one contains two parentheses and which contain only one parentheses .

Please, you can try to use tue custom transformer SpecificCharacterCounter.

 

SpecificCharacterCounter 

Workspace_Counter


  • That what I want ,thanks.It works great ,but how could I divide them by testfilter .i need to know which one contains two parentheses and which contain only one parentheses .

Thanks a lot


  • That what I want ,thanks.It works great ,but how could I divide them by testfilter .i need to know which one contains two parentheses and which contain only one parentheses .

I'm happy to help you!


Reply