1.2.1275. Unkown Regex Options¶
Regex support in PHP accepts the following list of options : eimsuxADJSUX
.
All other letter used as option are not supported : depending on the situation, they may be ignored or raise an error.
<?php
// all options are available
if (preg_match('/\d+/isA', $string, $results)) { }
// p and h are not regex options, p is double
if (preg_match('/\d+/php', $string, $results)) { }
?>
See also Pattern Modifiers.
1.2.1275.1. Connex PHP features¶
1.2.1275.1.1. Suggestions¶
Remove the unknown options
Replace the option with a valid one
Fix any syntax typo in the regex
1.2.1275.1.2. Specs¶
Short name |
Structures/UnknownPregOption |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
Major |
Time To Fix |
Slow (1 hour) |
Precision |
High |
Available in |