Example, comparing these two strings:
Hello Jake, blah blah blah. Sent at 1:23 AM
Hello Ben, blah blah blah. Sent at 3:12 PM
Should produce:
Hello [variable], blah blah blah. Sent at [variable]
I don’t need to show the old one compared to the new one, just remove the differences (or in this case replace them with the text “[variable]”).
split on space (\s) into arrays.
Loop through arrays to compare, when the values dont match, replace with [variable], use implode() to make back to a string