Question

Why does regular expression not work in BulkAttributeRemover?

  • 10 April 2014
  • 4 replies
  • 1 view

The regular expression input for bulkremover works if I type in:

 

   

 

    fme_.*

 

 

But if I try to add another expression using the regex or it fails to recognize the regex statement

 

   

 

     fme__.*|igds_.*

 

 

I tested this statement using the ruby testing aplication recommended in the help section, and it was able to recognize the statement

4 replies

Userlevel 4
Hi,

 

 

it seems you have two underscores after "fme" in the second statement, is that on purpose?

 

 

David
Userlevel 2
Badge +17
Hi,

 

 

Indeed. The current BulkAttributeRemover seems not to support some complex regular expression. In this case, you can use two BulkAttributeRemover in series.

 

1st: fme_.*

 

2nd: igds_.*

 

 

Takashi
Badge +3
Hi,

 

 

In the stringsearcher it works.

 

 

I tried it in the bulkatt.rem.

 

I confirm it does not accept "pipelines". Only single line expressions. Nothing helps, braces, brackets..to no avail.

 

 

Pretty limited it seems.

 

 

You wil have to use 2 Bulkremovers in sequence to remove 2 attributes in bulk using a regexp.

 

 

 

 

Gio
Badge +3
also the regexp works, it seems the bulkremover does nothing with the result.

Reply