I want to remove occurrence of a string from a given string. Like /hello: from a string like /yo:/sup:/hello:/yo:/hello:/yup.
And one thing for sure if string contains a colon in end then it must be removed.
There can be anything between /hello and colon (:) so I want to strip all from /hello to first colon (:).