Set Difference

Calculates the difference, or relative complement, of two sets.

Input: TextResult: Text

Text input

Tool options

Examples

Set Difference

Input

1 2 3 4 5

3 4 5 6 7

Expected answer

1 2
Sample delimiter
Item delimiter
duplicates in both sets

Input

1 1 2 2 3

2 2 3 3

Expected answer

JSON
1
Sample delimiter
Item delimiter
duplicates in first set are removed

Input

red,red,blue

blue

Expected answer

red
Sample delimiter
Item delimiter
,
item delimiter

Input

1;2;3;4;5

3;4;5;6;7

Expected answer

1;2
Sample delimiter
Item delimiter
;
sample delimiter

Input

1;2;3;4;5===3;4;5;6;7

Expected answer

1;2
Sample delimiter
===
Item delimiter
;
wrong sample count

Input

1 2 3 4 5_3_4 5 6 7

Expected rejection

Message contains
Incorrect number of sets, perhaps you need to modify the sample delimiter or add more samples?
Sample delimiter
Item delimiter
_

Format reference: Set Difference background and specification

Parameters

ParameterDefault valueInput and choices
Sample delimiter"\\n\\n"Escape sequences such as \n, \r and \t are supported
Item delimiter","Escape sequences such as \n, \r and \t are supported

Related tools

Browse arithmetic / logic tools