Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
`{3}([\S\s]*?)`{3}|`([^`]*)`|~~([\S\s]*?)~~
/
gm
Input 1
1
New
Normal text, ~~this should be strikethrough~~ then some more normal text. ~~some multiline strikethrough text here~~ ``` Pre text. ~~NOT strikethrough, nothing inside the code block should be matched/styled.~~ Post text. ``` `~~Not strikethrough either~~`
Extraction
Normal text, ~~this should be strikethrough~~ then some more normal text. ~~some multiline strikethrough text here~~ ``` Pre text. ~~NOT strikethrough, nothing inside the code block should be matched/styled.~~ Post text. ``` `~~Not strikethrough either~~`