Back to Intellij Community

RegExpRedundantClassElement

RegExpSupport/resources/inspectionDescriptions/RegExpRedundantClassElement.html

2025.3-rc-2217 B
Original Source

Reports redundant \d or [:digit:] that are used in one class with \w or [:word:] (\D with \W) and can be removed.

Example:

[\w\d]

After the quick-fix is applied:

[\w]

New in 2022.2