Lets say we have the following array of strings (this array is a lot bigger):
[
'http://www.example.com?id=123456',
'http://www.example.com?id=234567'
]
As you can see, everything up to the first digit is the same in both strings. Is there a way to easily find what both strings have in common and what is different? So that I get a string like 'http://www.example.com?id='
and and array like ['123456', '234567']
.