Regular Expressions 101

Community Patterns

1...45678...901

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 - 3 months ago (Last modified 3 months ago)