Use regular expressions in a StringSearcher.
For the counter: \\d+(?=\\/)
For denominator: (?<=\\/)\\d+
I would use the ExpressionEvaluator with this expression after splitting the dimension into two parts with the AttributeSplitter.
@max(@Value(_list{0}),@Value(_list{1}))
I would use the ExpressionEvaluator with this expression after splitting the dimension into two parts with the AttributeSplitter.
@max(@Value(_list{0}),@Value(_list{1}))
If the list never contains more than two items, this is a great solution.
I would use the ExpressionEvaluator with this expression after splitting the dimension into two parts with the AttributeSplitter.
@max(@Value(_list{0}),@Value(_list{1}))
Yes, the solution can be applied only if the text contains just two parts.
Â
Just an experiment. The TclCaller with this expression can be applied to any number of dimensions, also no need to AttributeSplitter.
Â
expr max( regsub -all / pFME_GetAttribute text] ,])
Â
I tried all three methods:
Â
For me Mr. takashi`s suggested method works perfect as well as Mr.
david_r`s method.
For this time I used Mr. takashi `s method, but I also made a transformation, using Mr.
david_r`s method for more complicated cases.
Â
About jneujens method - maybe I do something wrong, but following by steps in Your comment, I`ve got one new column with a value before and other new column with value after the "/" but not the value of the largest one, so I must compare them.
Anyway - Thanks to all!