This is a simple one. I want to replace a sub-string with another sub-string on client-side using Javascript.
Original string is \'original READ ONLY\'
Good summary. It is regexp based, if you use regexp notation you can specify the i and g modifiers (case insensitive (i), which will match regardless to case and global (g), which will replace all occurences), if you use string notation it'll get converted to a regex and you wont' be able to specify any modifier.