IntelliJ IDEA regular expressions syntax reference information.
A brief summary of regexp syntax in IntelliJ IDEA plus tips and tricks. | IntelliJ IDEA Help |
This section provides a brief summary of regexp syntax that can be helpful for creating search and issue navigation patterns.
RegEx syntax reference
Tips and Tricks
IntelliJ IDEA provides intention actions to check validity of the regular expressions, and edit regular expressions in a scratchpad. Place the caret at a regular expression, and press Alt+Enter. The suggestion list of intention actions, available in this context, appears:

- Choose , and press Enter. The dialog box that
pops up, shows the current regular expression
in the upper pane. In the lower pane, type the string to which this expression should match.
If the regular expression matches the entered string,
the background becomes green. If the regular expression doesn't match, then the background is red.

- Choose , and press Enter. The regular
expression opens for editing in a separate tab in the editor. However, this is but a scratchpad, and no
file is physically created:

As you type in the scratchpad, all changes are synchronized with the original regular expression. Press Escape to close the editor tab.
