Regular Expressions 101

Community Patterns

Bad Markdown Links matcher

0

Regular Expression
ECMAScript (JavaScript)

/
\[([a-zA-Z0--ž\s\-,."']+)\]\s+
/
gmi

Description

// Expecting this is a string, will try to replace md links // in wrong format: // [link nowhere] or [link] // to just link nowhere or link

Submitted by diegoaguilar - a year ago