Regular Expressions 101

filter branch name in git

Open Workspace
  • PCRE2 (PHP)
  • Match
1

Regular Expression

/
^(?<path>.*\/)*(?<branch>.*)
/
gm

Description

skip everything before the real last branch name

Submitted by Anonymous