how would one find the closest match string to another string
so for example
string1:val1 ... string1:val2 .... string2:val3 ...
should capture the closest string1 to string2 which would be "string1:val2"
string1 can appear any number of times.
the in between characters can be anything