![]() Str = str.substring(0,i) + RB(st2, find, replace) Prevstring = string.replace(omit, place) If ((str = null) & (find = null)) return newToken In response to Click Upvote's comment, you could simplify it even more: function replaceAll(str, find, replace) In response to comment: var find = 'abc' ![]() ![]() As of August 2020: Modern browsers have support for the String.replaceAll() method defined by the ECMAScript 2021 language specification.įor older/legacy browsers: str = str.replace(/abc/g, '')
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |