text.replace
text.replace(string, old, new)
Returns a modified version of the string formed by replacing all occurrences of the string
old
with new
. For example, text.replace("hello world", "o", "OO")
returns "hellOO wOOrld"
.
Was this page helpful? Yes No
Submitting...
Thank you
Comments
Log in or register to comment.