Regular Expressions 101

@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
Whats new?

Save & Share

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python 2.7
  • Golang (RE2)

Function

  • Match
  • Substitution
  • List
  • Unit Tests
/
^\s+(?:\-(?<letter>\w)\,?\s+)?(?:\-\-(?<name>\S+)(?:\[?[ =](?<value>\S+)\]?)?)?\s+(?<text>.*)$
/
gm
All the errors detected are listed below, from left to right, as they appear in the pattern.
? The preceding token is not quantifiable
? The preceding token is not quantifiable
? The preceding token is not quantifiable
? The preceding token is not quantifiable
Your regular expression does not match the subject string.

Regular Expression
No Match

/
/
gm

Test String