Inspectopedia
 
2024.3

Unnecessary non-capturing group

Warning
New
Last modified: 03 December 2024

Reports unnecessary non-capturing groups, which have no influence on the match result.

Example:

After the quick-fix is applied:

New in 2021.1