To verify that your regular expression is correct, place the caret within the expression you want to check, press &shortcut:ShowIntentionActions;, and select Edit RegExp.

In the popup frame type a sample string that should match your regular expression. If the background turns green, the match occurred. If it turns red, there is no match or your expression probably contains a mistake.

Check regex