Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
.NET 7.0 (C#)

@"
(?:[/-]+(?<key>\S+?))|(?:""[/-]+(?<key>.+?)"")|(?:'[/-]+(?<key>.+?)')|(?:""(?<value>.+?)"")|(?:'(?<value>.+?)')|(?<value>\S+)
"
gm

Description

Supports parameters such as keys and values, also parameters enclosed in quotes.

Submitted by Pavel Bashkardin - 2 months ago (Last modified 2 months ago)