ReSharper 2021.1 Help

Validate Regular Expression dialog

ReSharper | Tools | Validate Regular Expression

As its name suggests, this dialog helps validating regular expressions by playing with various test inputs.

The dialog appears in two cases:

  • If you choose to validate a regular expression in your source code, the dialog opens with the current regular expression.

  • If you open it from the menu ReSharper | Tools | Validate Regular Expression, the dialog appears empty allowing you to specify both the expression and the test input.

Validate Regular Expression window

The dialog has the following controls:

Regular ExpressionHere you can view and edit the regular expression that you validate.
OptionsThis combo box allows you to set the regular expression options that will be used when validating your expression against the test input in this dialog.
Test inputHere you can type anything to test your regular expression. The matches in the input are highlighted.
Check lines separatelyIf this checkbox is selected, your regular expression will be applied to each new line in the test input.
MatchesThis table lists all matches of your regular expression in the test input. You can click the matches to locate them in the test input.
InsertThis button is only available if you are validating a regular expression in the source code. In this case, the button pastes the validated (or modified) expression back into the original source code location and closes the dialog.
CancelThis button closes the dialog.
Last modified: 08 March 2021