P
petersson
Hi,
I have two arrays. The first one contains a list of items. For
example:
abc
bca
bac
cab
acb
My second one contains fewer items, but parts of the individual items
match with the items in my first array.
12_bca
21_acb
22_cab
Hence that the "bca" in "12_bca" above matches with the single "bca"
in my first array, like this:
abc
bca : 12_bca
bac
cab : 22_cab
acb : 21_acb
Now I want a function that returns the items from my first array that
doesn't partially match any of the items in my second array. Like
this:
abc
bac
Note: the example above is extremely simplified. Splitting the second
array on the "_" sign won't work... Anyone done this before? Knows of
a simple solution?
Thanks in advance
/s
I have two arrays. The first one contains a list of items. For
example:
abc
bca
bac
cab
acb
My second one contains fewer items, but parts of the individual items
match with the items in my first array.
12_bca
21_acb
22_cab
Hence that the "bca" in "12_bca" above matches with the single "bca"
in my first array, like this:
abc
bca : 12_bca
bac
cab : 22_cab
acb : 21_acb
Now I want a function that returns the items from my first array that
doesn't partially match any of the items in my second array. Like
this:
abc
bac
Note: the example above is extremely simplified. Splitting the second
array on the "_" sign won't work... Anyone done this before? Knows of
a simple solution?
Thanks in advance
/s