It is used for replacing old word with the new one.The syntax of it as shown below

Syntax of Str.Replace:

replace(old, new, count)

Old: Old is the keyword that has to be replaced.

new: the new keyword we want to add in place with old.

count: It is integer value given for how many occurrence of value you want to replace with the new one otherwise it will replace all elements in string with the new one.

how to replace given element in string with the new one using str.replace
1.String replace

 

By SC

One thought on “Str.replace”

Leave a Reply

Your email address will not be published. Required fields are marked *