Regular Expressions 101

Community Patterns

1...456

Community Library Entry

1

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)