1.2.1030. Regex Inventory

All regular expressions used in the code. PHP relies on the PCRE extension to process them, with the functions preg_match(), preg_replace(), etc.

mbstring regular expressions are also collected. POSIX regex are not listed : they were deprecated in PHP 7.0.

<?php

// PCRE regex used with preg_match
preg_match('/[abc]+/', $string);

// Mbstring regex, in the arabic range
if(mb_ereg('[\x{0600}-\x{06FF}]', $text))

?>

See also preg_match(), `ext/mbstring <http://www.php.net/manual/en/book.mbstring.php> `_ and `ext/pcre <http://www.php.net/manual/en/book.pcre.php> `_.

1.2.1030.1. Specs

Short name

Type/Regex

Rulesets

All, Appinfo, CE, Inventory

Exakat since

0.12.14

PHP Version

All

Severity

Time To Fix

Precision

High

Features

regex

Available in

Entreprise Edition, Community Edition, Exakat Cloud