Guide: Remove Characters

Guide: Remove Characters

Donate

πŸ“˜
If you are importing a large file into Notion, there may be a scenario where bulk removal of certain characters is necessary.
Remove test

Extract All Number Sequences

Media
notion image
replaceAll(prop("Name"), "([^0-9]+)([^0-9]+)", "")

Extract All Text Sequences

Media
notion image
replaceAll(prop("Name"), "([^A-z]+)([^A-z]+)", "")

Extract All Characters After A Special Character

Media
notion image
replaceAll(prop("Name"), ".*[:] ", "")

Extract All Characters Before A Special Character

Media
notion image
replaceAll(prop("Name"), "[:].+", "")

Extract Last Word In A String

Media
notion image
replaceAll(prop("Name"), ".*[^A-z]", "")

Extract First Word In A String

Media
notion image
replaceAll(prop("Name"), "[^A-z].+", "")

Extract All Text Between Two Characters

Media
notion image
replaceAll(replace(prop("Name"), "[^(]*[(]", ""), "[)][^)]*$", "")