函數索引
文字函數
length、substring、contains、replaceAll、style、format、match 等文字函數。
文字
| 函數 | 作用 | 返回值或替代方案 |
|---|---|---|
length() | 文字字元數或列表元素數 | Number |
substring() | 擷取文字 | Text |
contains() | 判斷文字是否包含指定內容 | Boolean |
replace() | 替換第一個匹配項 | Text |
replaceAll() | 替換所有匹配項 | Text |
lower() | 轉小寫 | Text |
upper() | 轉大寫 | Text |
repeat() | 重複文字 | Text |
trim() | 去除文字首尾空白 | Text |
link() | 生成可點選連結 | Text |
style() | 新增文字樣式 | Text |
unstyle() | 移除文字樣式 | Text |
format() | 轉為文字 | Text |
test() | 正則測試 | Boolean |
match() | 正則匹配,返回所有匹配項 | List |
想把這些公式直接用在任務提醒、專案進度、筆記熱力圖和統計報表裡,可以繼續了解 FLO.W 思流 Notion 模板。
最後更新於
Notion 公式