someone please help me to write a program that would replace all occurances of a substring in a string ,with a given string.if the input string is "the the the the",& if the substring to be deleted & the substring to be substituted are "th",&"ase" respectievely then the output should be something like this,"asee asee asee asee".that is it is not a word by word or character by character replacement.well that makes the whole thing a bit complicated.please help me with this as i have my programing practical exam this wednesday.
abcd_nima 0 Newbie Poster
Salem 5,248 Posting Sage
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.