Regular Expressions 101

Community Patterns

Dotnet Solution Project Parser

0

Regular Expression
PCRE2 (PHP >=7.3)

/
Project\((?<ParentProjectGuid>\"\{([0-9A-Fa-f\-]{8}(?:-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})\}\")\) ?\= ?(?<ProjectName>\"[\-\\\w_\. ]*\"),? ?(?<ProjectFilePath>\"[\w\-\.\\_ ]*\"),\s?(?<ProjectGuid>\"\{([0-9A-Fa-f\-]{8}(?:-[0-9A-Fa-f]{4}){3}-[0-9A-Fa-f]{12})\}\")
/
gm

Description

Parse the projects listed in a sln file

Submitted by github.com/rbleattler - a year ago (Last modified a year ago)