Regular Expressions 101

Library entries

Bash command help flags extract

Vote

0

Regular Expression
javascript

/
^\s+(?:\-(?<letter>\w)\,?\s+)?(?:\-\-(?<name>\S+)(?:\[?[ =](?<value>\S+)\]?)?)?\s+(?<text>.*)$
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 years ago