Add a word and it will be dimmed and crossed-out as you type:
filler
Enclose a part of a phrase in Markdown strikethrough to provide more context:
custom ~~filler~~
Prefix a pattern with a dash to provide an exception:
custom ~~filler~~
-custom ~~filler~~ exception
Exceptions affect both custom and built-in patterns.
Regular Expressions
You can use regular expressions by enclosing a pattern in slashes:
/custom ~~filler~~ reg(exp?|ular expression)/
-/reg(exp?|ular expression) exception/
Note that only a subset of regular expression features is supported to avoid slowing down editing.
Feature | Notes |
---|---|
Character classes [a–c0-9] |
Supported, limited to ASCII |
Repeated character classes [a-z]+ |
Does not repeat if the character class contains more than 10 characters |
Negated [^a] |
Ignored |
Optional a? |
Supported |
Escaped \. |
Supported |
a* b+ c{2,} d{3,15} |
Limited to 10 repetitions |
Lazy matches | Undefined behavior |
Greedy matches | Undefined behavior |
Alternation | |
Supported |
Octal characters \0ooo |
Supported |
Any character . |
Ignored |
Word character \w |
Undefined behavior |
Non-word character \W |
Undefined behavior |
Anchors ^ $ \b \B \A \Z \z \G |
Supported |
Capturing parentheses (…) |
Supported |
Backreferences \1 |
Supported |
Named capture groups (?<name>…) |
Supported |
Named backreferences \k<name> |
Supported |
Non-capturing parentheses (?:…) |
Supported |
Comments (?#…) |
Supported |
Lookahead (?=…) |
Ignored |
Negative lookahead (?!…) |
Ignored |
Lookbehind (?<=…) |
Ignored |
Negative lookbehind (?<!…) |
Ignored |
Atomic match (?>…) |
Non-capturing parentheses |
Expression modifiers (?id-id:…) |
Ignored |
Mode modifiers (?id-id) |
Ignored |
Modifiers /…/id-id |
Supported |
Modifiers | Notes |
---|---|
Case insensitive matching i |
On by default |
Diacritic insensitive matching d |
Off by default |