Format: Select all
{ n.replace('apple':'orange') }
e.g. Strip : and - and replace & with and:
Format: Select all
{ n.replace(':':'', '-':'', '&':'and') }
e.g. Replace German Umlauts:
Format: Select all
{ n.replace(ä:'ae', ö:'oe', ü:'ue') }
e.g. Read replacement map from an external CSV or TSV file:
Format: Select all
{ n.replace(csv('/path/to/replace.csv')) }
Console Output: Select all
$ cat ~/replace.csv
ä ae
ö oe
ü ue
e.g. Remove all patterns in (...) round brackets:
Format: Select all
{ fn.removeAll(/\(.+?\)/) }
Format: Select all
{ fn.removeAll(/\[.+?\]/) }