Regular Expressions 101

Community Library Entry

2

Regular Expression
PCRE (PHP <7.3)

/
(commit [0-9a-f]{40})(\sMerge:\s[0-9a-f]{7}\s[0-9a-f]{7})?\sAuthor:\s(\w*)\sDate:\s[a-zA-Z]{3}\s[a-zA-z]{3}\s\d\d\s\d\d:\d\d:\d\d\s[\d]{4}\s\+0200\s+(?<message>(?:(?!commit .{40}).)+)
/
g

Description

no description available

Submitted by anonymous - 8 years ago