Inspectopedia
 
2024.3

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

Info
New
Last modified: 03 December 2024

Reports the n PCRE modifier that can be replaced with non-capturing groups in RegExp patterns. Supported in PHP 8.2 and later.