Note that this is only a scratchpad and no file is physically created:Īs you type in the scratchpad, all changes are synchronized with the original regular expression. The regular expression opens for editing in a separate tab in the editor. If the regular expression doesn't match, then is displayed.Ĭhoose Edit RegExp Fragment, and press Enter. If the regular expression matches the entered string, IntelliJ IDEA displays a green check mark against the regex. In the lower pane, type the string to which this expression should match. The dialog that pops up, shows the current regular expression in the upper pane. The suggestion list of intention actions, available in this context, appears:Ĭhoose Check RegExp, and press Enter. Place the caret at a regular expression, and press Alt Enter. IntelliJ IDEA provides intention actions to check validity of the regular expressions, and edit regular expressions in a scratchpad. Since IntelliJ IDEA supports all the standard regular expressions syntax, you can check for more information about the syntax. For example, (?
0 Comments
Leave a Reply. |