Regular Expressions 101

Community Patterns

Markdown Masked links

1

Regular Expression
ECMAScript (JavaScript)

/
\[.+\]\(https?:\/\/.+\.\w{2,}\)
/
gm

Description

matches for any markdown Masked link

[text](https://example.com) detected [](https://example.com) not detected (not valid(on most platforms))

Submitted by yande - 2 months ago