When the input strings are handled, they are split using the .split() method, which uses RegEx - however if the user inputs a character that can be interpreted by RegEx ( pipe symbol, open parentheses etc ) it won't be escaped, and the output will then be incorrect.
What would be the best way to handle this - sanitise the inputs, throw an error, or request that the user input a valid delimiter instead?
When the input strings are handled, they are split using the .split() method, which uses RegEx - however if the user inputs a character that can be interpreted by RegEx ( pipe symbol, open parentheses etc ) it won't be escaped, and the output will then be incorrect.
What would be the best way to handle this - sanitise the inputs, throw an error, or request that the user input a valid delimiter instead?