//depot/Efp/Celox/CELOX-3.5.0/CeloxStart.sln
//depot/Efp/Celox/MAIN/CeloxStart.sln
What I want to do is remove the part from both the beginning and end of this these two strings that match, and only leave the part that doesn't match.In other words, I want to remove <font//depot/Efp/Celox from the front of the two strings and /CeloxStart.sln from the rear of these two strings. Leaving string #1 as CELOX-3.5.0 and the second string as MAIN Now, I know I can parse the strings one character at a time, but I was hoping for a method of mashing the two strings together in one or two steps -- maybe using regular expressions or maybe ANDing or ORing the two strings together, but how?
Any ideas of an efficient way of doing this? I have thousands of these records to process, and I want to do it as efficiently as possible.
In reply to Selecting the difference between two strings by qazwart
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |