Slackbot
08/17/2021, 7:44 AMPaul_s
08/17/2021, 7:50 AM.replace(/&/g, "and");c c
08/17/2021, 7:52 AMzvictor
08/17/2021, 8:20 AMm flag too, which means "multiline" since your memo text has newlines in it ( \n is the newline character I noticed). So, g for global and m for multiline:
.replace(/&/gm, 'and')
For more info on regex, I highly recommend these sites:
https://regex101.com/
https://regexr.com/
https://www.regular-expressions.info/c c
08/17/2021, 8:20 AM