I have two strings (A and
and uncertain lenght sub-string are concated by "," and I want to compare these two strings to see if any sub-string is matching between Strings A and B. Below is sample data for input and desired output.
Can someone help me with a RegEx for this purpose? Thank you very much.
| A | B | Answer |
| 1,2,3,4 | 2,3,5 | Y |
| 1,2,3,4 | 5,6,7 | N |
| 1,2,3 | 2,5,7 | Y |