Find the best Rector rule to solve your problem. Searching through 729 rules.

Found 1 rule. That's the one:

SimplifyRegexPatternRector

Simplify regex pattern to known ranges

 class SomeClass
 {
     public function run($value)
     {
-        preg_match('#[a-zA-Z0-9+]#', $value);
+        preg_match('#[\w\d+]#', $value);
     }
 }
SETS:  Code Quality