lcs

How to merge common strings with different values between parenthesis in Python

How to merge common strings with different values between parenthesis in Python Question: I am processing some strings within lists that look like these: [‘COLOR INCLUDES (40)’, ‘LONG_DESCRIPTION CONTAINS ("BLACK")’, ‘COLOR INCLUDES (38)’] [‘COLOR INCLUDES (30,31,32,33,56,74,84,85,93,99,184,800,823,830,833,838,839)’, ‘COLOR INCLUDES (30,31,32,33,56,74,84,85,93,99,184,409,800,823,830,833,838,839)’, ‘COLOR INCLUDES (800)’] Thing is, I want to merge similar strings with their values into one, …

Total answers: 1