Redundant '\d', '[:digit:]', or '\D' class elements

Last modified: Last modified: 18 September 2025

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

Example:

After the quick-fix is applied:

New in 2022.2

Inspection ID: RegExpRedundantClassElement