9951 explained code solutions for 126 technologies


javascriptReplace all occurences of a substring in a string


'the string to replace the text in'.replaceAll('the', 'some');ctrl + c
the string to replace the text in

test string to search and replace substring in

replaceAll

this function will find and replace all occurences of a substring

'the'

what substring to search for

'some'

replacement string