Database

Extract Name From @ Handles With Notion

Screen Shot 2020-03-15 at 8.10.04 PM.png

๐Ÿ”ช Slice / Isolate Text

This short Notion tutorial will teach you how to use the Slice function in regards to pulling and isolating valuable text from a string. The example I use here is isolating twitter handles from the "@" symbol. This can also be useful for extracting text form email names.

Let's begin with the Slice function:

SLICE โ†’ Extracts a substring from a string from the start index (inclusively) to the end index (optional and exclusively).

  • Syntax โ†’ slice(text, number, number)

Slice @ From Twitter Handle Formula

slice(prop("Handle"), 1, 50)
Screen Shot 2020-03-15 at 8.12.06 PM.png

Let's take this one step further and generate twitter links with the handles.

*Note: These links are not clickable. However, if table is exported to CSV, links are clickable.

Twitter Link With Sliced Handle Formula

"https://twitter.com/" + slice(prop("Handle"), 1, 50)
Screen Shot 2020-03-15 at 8.14.46 PM.png