How can I replace part of a string that has a potentially unknown starting index. For instance, if I had the following strings:
"<sometexthere width='200'>"
"<sometexthere tile='test' width='345'>"
I would be looking to replace the width attibute value that can have an unknown value and as mentioned before an unknown start index.
The I understand that I would somehow have to base this on the following part, which is constant, I just don't quite understand how to achieve this.
width='