Regular Expressions 101

Community Patterns

Matching lines that starts with -

0

Regular Expression
PCRE (PHP <7.3)

/
^(-\w+\s*.*)\n*$
/
gum

Description

It may be useful inorder to replace those lines with li

Submitted by Said Bakr - 9 years ago