SharePoint List Formatting - Best way to replace Strings
Image Source: Shutterstock.com
Sep 12, 2022 3:48 PM

SharePoint List Formatting - Best way to replace Strings

External Blog Post

Two approaches to replace all occurrences of a value in a String using SharePoint list formatting: replaceAll & split + join

Until some time ago there was only a replace function in list formatting, which allowed us to replace only the first occurrence of a value in a string.

Recently Microsoft released two new operators for list formatting:

  • replaceAll
  • split

Formatting syntax reference

https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/formatting-syntax-reference?WT.mc_id=M365-MVP-5004644