<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5f290176-d74d-4847-824b-f173f3489a87/tfexplains-profile.jpg" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5f290176-d74d-4847-824b-f173f3489a87/tfexplains-profile.jpg" width="40px" /> This page contains working examples for all supported character escapes in Notion regular expressions. Duplicate this page to your workspace if you’re unable to view the formulas.
Regular Expressions in Notion Formulas - Thomas Frank
Created by Thomas Frank | Learn Notion Formulas | Notion Basics | Templates | Twitter
</aside>
📚 References:
Unicode Numbers in Regular Expressions
📜 Table of Contents:
You can find a list of all Unicode, octal, and hexadecimal reference codes here:
\\\\u0000
- escaped Unicode referencetest("A","\\\\u0041") // Output: True
\\\\000
- octal character referencetest("A","\\\\101") // Output: True
\\\\x00
- hexadecimal character referencetest("A","\\\\x41") // Output: True
\\\\n
- new linereplaceAll("Apple\\nBanana\\nOrange", "\\\\n", "\\n\\n")
/* Output:
Apple
Banana
Orange
There are also several characters that must escaped with double backslashes (\\\\
) in order to be represented normally. These characters are used as special characters within regular expressions if they are not escaped.
Character | Escape |
---|---|
Period - . |
\\\\. |
Question mark - ? |
\\\\? |
Dollar sign - $ |
\\\\$ |
Asterisk - * |
\\\\* |
Plus sign - + |
\\\\+ |
Caret - ^ |
\\\\^ |
Left parenthesis - ( |
\\\\( |
Right parenthesis - ) |
\\\\) |
Left bracket - [ |
\\\\[ |
Right bracket - ] |
\\\\] |
Left curly brace - { |
\\\\{ |
Right curly brace - } |
\\\\} |
Pipe - ` | ` |
Forward slash - / |
\\\\/ |
Backslash \\ |
\\\\\\\\ |