Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 518 Bytes

File metadata and controls

35 lines (23 loc) · 518 Bytes
layout page
title CC0010
tagline RegexAnalyzer

|TypeName|RegexAnalyzer | |Check Id | CC0010 | |Category | Usage | |Severity | Error |

Cause

The regular expression is invalid and will fail at run-time.

Example

{% highlight csharp %} Regex.Match("", "["); {% endhighlight %}

Analyzer

An error will be triggered in your code:

![Code fix]({{ BASE_PATH }}/assets/images/CC0010/analyzer0.png)
![Code fix]({{ BASE_PATH }}/assets/images/CC0010/analyzer1.png)

Related rules

None

See also

TBD