I've searched far and wide and can't seem to find any prebuilt library that can do this:
Given 2 strings in python where one is the original string and the other has certain words replaced with place holders, I would like to identify the indices of the words in the original string that have been replaced with placeholders.
Example:
original = "This is the original string"
processed = "This is [placeholder] string"
indices = [8, 20]
The first index is the start of the substring that has been replaced, and the second index is the end of this substring.
Any help would be much appreciated.