Using Regular Expressions within Visual Studio 2022 Find&Replace

The Find box within Visual Studio 2022 (dark theme) with the ‘Use Regular Expressions’ button enabled.
Find&Replace command for removing the code block
Using the command: \r\n if \(request.HasValidation\)\r\n {\r\n request.Validate\(\);\r\n }\r\n

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store