Inspectopedia Help

'n' modifier can be replaced with non-capturing groups

Reports n PCRE modifier, that can be replaced with usage of non-capturing groups instead of capturing in regexp pattern.

Inspection Details

By default bundled with:

PhpStorm 2024.1, Qodana for PHP 2024.1,

Can be installed with plugin:

PHP, 241.SNAPSHOT

Last modified: 12 March 2024