examples and expected outcomes
STI = S AND I
S T I = S AND I
ST I = S AND I
WITH TWITHOUT CONTRAST = WITH AND WITHOUT CONTRAST
if I use string map on the above examples I would get output like this
set a [string map “\T\” “AND”]
output would be:
SANDI
S AND I
SAND I
Where S AND I is the correct output. What is an efficient way to program this so all examples have the correct output?
using CL 5.5 linux 4.0