Prism · Strings
$replace
Swaps the first occurrence of search in a string for replacement, or every occurrence with all: true.
{ csv: 'apple,banana,cherry' }{
$replace: {
value: { $ref: '$.csv' },
search: 'banana',
replacement: '***',
},
}'apple,***,cherry'
Runs in this page on the installed package. The input and the expected output are defined by the example.