Regular Expressions 101

Community Patterns

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 - 23 days ago (Last modified 23 days ago)