Say I have an unknown string of 100+ characters and I want to remove the last characters before the 100th character and replace them with ...
, deleting every character after the 100th. ie:
I would like to remove the last three characters before the 100th character and replace them with a period and deleting everything after.
would become:
I would like to remove the last three characters before the 100th character and replace them with...
.
What is the best way to tackle this problem?