Community Patterns

Community Library Entry

1

Regular Expression
Created·2022-02-02 09:26
Flavor·ECMAScript (JavaScript)

/
\*(.*?)((?<!\\)|(?<=\\\\))\*
/
g
Open regex in editor

Description

Telegram Markdown V2's bold (*) can be escaped by using \*. RegExp to validate it and get the actual contents inside.

Submitted by dcdunkan