lint/style/no-ereg
In the lint-strict preset. In Rector’s rector/php70 set. Unsafe fix: it can change behavior.
What it does
Replace deprecated ereg regular expression functions with preg.
Configuration
[lint.rules]
"style/no-ereg" = "error"
To skip it in some files, add an override or a @pun-ignore-file comment.
Replaces
ereg_to_preg(php-cs-fixer, risky)EregToPregMatch(rector)