Regular Expressions 101

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