Where chatGPT has been useful has been with those super-boring string parsing functions, for example: how do I replace newline character with unicode newline in javascript in a string a: str = str.replace(/\n/g, '\u2028'); These work pretty consistently.