I came across some search and replace PHP code that was working correctly if the search string sat in the middle or towards the end...