Regular Expressions 101

Community Patterns

1...456

Multiline CSS to one line CSS example (C#)

1

Regular Expression
.NET 7.0 (C#)

@"
(?::.+(?=;))?(\s+)
"
gm

Description

Regex that will match/replace unnecessary whitespaces in CSS code.

Submitted by Puchkov Eugene - a month ago (Last modified a month ago)