replace() is an inbuilt function in julia which is used to replace a word or character with the specified string or character.
replace(s::AbstractString, pattern=>Word; count::Integer)
- s::AbstractString: Specified string.
- pattern=>Word: Pattern is searched from the given sentence and then that pattern is replaced with the word.
- count::Integer: It is a number which is the count of specified pattern available in the sentence.
Returns: It returns a new sentence with replaced words.