Using Regex to remove css comments

后端 未结 4 1025
执念已碎
执念已碎 2021-01-23 16:56

How can I remove comments from CSS using Regex.Replace()?

Note - I\'m not able to use the regex mentioned here in C# - Regular expression to remove CSS comm

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-23 17:53

    Use the regex from the linked question like so:

    var rx = new Regex(@"(?

提交回复
热议问题