12 Replies Latest reply: Aug 27, 2015 4:59 AM by Stefan Wühl RSS

    How to subtract string from a string, subfield-wise

    Stefan Wühl

      Hello all,


      I've got two strings:


      Let A = 'A, B, C, D, E';

      Let B = 'C, E';


      I want to get the difference / missing substrings when comparing B with A, i.e. result = 'A, B, D'

      B is always is subgroup of A, delimiter is ', ' in this example but could be set as wanted.


      In real application, I build the strings dynamically in the frontend, the solution also needs to be one single expression (all expressions are within a chart object with dimensions and need to regard the dimensions, but first start with a simple example).


      So, anyone has a nice solution to this already?


      Thanks in advance,