Skip to main content

Hello Guys

we need to filter thousand of address into Odd and even number,

we are using the test filter, I think we should use the reg expression for the condition,

any idea how to write the expression

Thanks

This will match any odd number

^\d*>13579]$

But I'd probably just use a tester/testfilter

0684Q00000ArLlaQAF.png


Try the ParityFilter on the FME Hub, though I haven't updated it in a long time so it may not be as fast as newer methods.
Try the ParityFilter on the FME Hub, though I haven't updated it in a long time so it may not be as fast as newer methods.

Actually it uses the same fmod function as ebygomm and someone kindly updated the transformers for 2019, so it should be good to use.


@boubcher FME functions will usually be faster than regex


This will match any odd number

^\d*>13579]$

But I'd probably just use a tester/testfilter

0684Q00000ArLlaQAF.png

@ebygomm

could please tell in test condition  

the left value is the att to test 

what is the condition?

and the right value ?

I know its basic thing but I am confused

Thanks

 

 


Reply