Regex Inventory

List of all Regex mentioned in the code..

ValueCountFile:Line
'|.+?\.sql$|'
1
  • /system/database/DB_utility.php
'/(\W)' $this->swap_pre '(\S+?)/'
1
  • /system/database/DB_driver.php
'/^\s*"?(SET|INSERT|UPDATE|DELETE|REPLACE|CREATE|DROP|TRUNCATE|LOAD|COPY|ALTER|RENAME|GRANT|REVOKE|LOCK|UNLOCK|REINDEX|MERGE)\s/i'
1
  • /system/database/DB_driver.php
'#' $preg_ec[0] . '?([^' $preg_ec[1] . '\.]+)' $preg_ec[1] . '?\.#i'
1
  • /system/database/DB_driver.php
'#' $preg_ec[0] . '?([^' $preg_ec[1] . $dot ']+)' $preg_ec[1] . '?(\.)?#i'
1
  • /system/database/DB_driver.php
'/(<|>|!|=|\sIS NULL|\sIS NOT NULL|\sEXISTS|\sBETWEEN|\sLIKE|\sIN\s*\(|\s)/i'
1
  • /system/database/DB_driver.php
'/' implode('|'$_operators) . '/i'
1
  • /system/database/DB_driver.php
'#^' $ec preg_quote($this->swap_pre) . '#'
1
  • /system/database/DB_driver.php
'#^' $ec preg_quote($this->swap_pre) . '(\S+?)#'
1
  • /system/database/DB_driver.php
'#^' $ec preg_quote($this->dbprefix) . '#'
1
  • /system/database/DB_driver.php
'/^' $this->swap_pre '(\S+?)/'
1
  • /system/database/DB_driver.php
'#^(NATURAL\s+)?((LEFT|RIGHT|FULL)\s+)?((INNER|OUTER)\s+)?JOIN$#'
1
  • /system/database/DB_query_builder.php
'/\sAND\s|\sOR\s/i'
1
  • /system/database/DB_query_builder.php
"/(\(*)?([\[\]\w\.'-]+)" preg_quote($operator) . "(.*)/i"
1
  • /system/database/DB_query_builder.php
'/\s*(!?=|<>|\sIS(?:\s+NOT)?\s)\s*$/i'
1
  • /system/database/DB_query_builder.php
'/\s+(ASC|DESC)$/i'
1
  • /system/database/DB_query_builder.php
'/\s+AS\s+/i'
1
  • /system/database/DB_query_builder.php
'/^(\(?)(.*)(' preg_quote($op'/') . ')\s*(.*(?<!\)))?(\)?)$/i'
1
  • /system/database/DB_query_builder.php
'#^(\d+\.\d+)#'
1
  • /system/database/drivers/postgre/postgre_driver.php
'/QuotedId=(0|1)/'
1
  • /system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
'/utf[^8]*8/i'
1
  • /system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
'/^(SELECT\s)/i'
1
  • /system/database/drivers/pdo/subdrivers/pdo_informix_driver.php
'#(Release\s)?(?<version>\d+(?:\.\d+)+)#'
1
  • /system/database/drivers/pdo/subdrivers/pdo_oci_driver.php
'/^CUBRID:[^:]+(:[0-9][1-9]{0,4})?:[^:]+:[^:]*:[^:]*:(\?.+)?$/'
1
  • /system/database/drivers/cubrid/cubrid_driver.php
'/^CUBRID:[^:]+(:[0-9][1-9]{0,4})?:[^:]+:([^:]*):([^:]*):(\?.+)?$/'
1
  • /system/database/drivers/cubrid/cubrid_driver.php
'/Resource id #/'
1
  • /system/database/drivers/cubrid/cubrid_result.php
'#Release\s(\d+(?:\.\d+)+)#'
1
  • /system/database/drivers/oci8/oci8_driver.php
'/_lang$/'
1
  • /system/core/Lang.php
'/^[a-z_-]+$/i'
1
  • /system/core/Lang.php
'#(_helper)?(\.php)?$#i'
1
  • /system/core/Loader.php
'/[^\x00-\x7F]/S'
1
  • /system/core/Utf8.php
'|</body>.*?</html>|is'
1
  • /system/core/Output.php
'/^(.*)ENDCI--->/'
1
  • /system/core/Output.php
'/^[' $this->_permitted_uri_chars ']+$/i' . (UTF8_ENABLED 'u' '')
1
  • /system/core/URI.php
'#^' $excluded '$#i' . (UTF8_ENABLED 'u' '')
1
  • /system/core/Security.php
'#%(?:\s*[0-9a-f]){2,}#i'
1
  • /system/core/Security.php
"/[^a-z0-9>]+[a-z0-9]+=([\'\"]).*?\\1/si"
1
  • /system/core/Security.php
'/<\w+.*/si'
1
  • /system/core/Security.php
'/<\?(php)/i'
1
  • /system/core/Security.php
'#(' substr($word0, -3) . ')(\W)#is'
1
  • /system/core/Security.php
'/<a/i'
1
  • /system/core/Security.php
'#<a(?:rea)?[^a-z0-9>]+([^>]*?)(?:>|$)#si'
1
  • /system/core/Security.php
'/<img/i'
1
  • /system/core/Security.php
'#<img[^a-z0-9]+([^>]*?)(?:\s?/?>|$)#si'
1
  • /system/core/Security.php
'/script|xss/i'
1
  • /system/core/Security.php
'#</*(?:script|xss).*?>#si'
1
  • /system/core/Security.php
'#' '<((?<slash>/*\s*)((?<tagName>[a-z0-9]+)(?=[^a-z0-9]|$)|.+)' '[^\s\042\047a-z0-9>/=]*' '(?<attributes>(?:[\s\042\047/=]*' '[^\s\042\047>/=]+' '(?:\s*=' '(?:[^\s\042\047=><`]+|\s*\042[^\042]*\042|\s*\047[^\047]*\047|\s*(?U:[^\s\042\047=><`]*))' ')?' ')*)' '[^>]*)(?<closeTag>\>)?#isS'
1
  • /system/core/Security.php
'#(alert|prompt|confirm|cmd|passthru|eval|exec|expression|system|fopen|fsockopen|file|file_get_contents|readfile|unlink)(\s*)\((.*?)\)#si'
1
  • /system/core/Security.php
'#(alert|prompt|confirm|cmd|passthru|eval|exec|expression|system|fopen|fsockopen|file|file_get_contents|readfile|unlink)(\s*)`(.*?)`#si'
1
  • /system/core/Security.php
'/&[a-z]{2,}(?![a-z;])/i'
1
  • /system/core/Security.php
'/(&#(?:x0*[0-9a-f]{2,5}(?![0-9a-f;])|(?:0*\d{2,4}(?![0-9;]))))/iS'
1
  • /system/core/Security.php
'#\s+#'
1
  • /system/core/Security.php
'/\s+/s'
1
  • /system/core/Security.php
'#^[^a-z]+#i'
1
  • /system/core/Security.php
'#' '(?<name>[^\s\042\047>/=]+)' '(?:\s*=(?<value>[^\s\042\047=><`]+|\s*\042[^\042]*\042|\s*\047[^\047]*\047|\s*(?U:[^\s\042\047=><`]*)))' '#i'
1
  • /system/core/Security.php
'#^(' implode('|'$evil_attributes) . ')$#i'
1
  • /system/core/Security.php
'#href=.*?(?:(?:alert|prompt|confirm)(?:\(|&\#40;|`|&\#96;)|javascript:|livescript:|mocha:|charset=|window\.|\(?document\)?\.|\.cookie|<script|<xss|d\s*a\s*t\s*a\s*:)#si'
1
  • /system/core/Security.php
'#src=.*?(?:(?:alert|prompt|confirm|eval)(?:\(|&\#40;|`|&\#96;)|javascript:|livescript:|mocha:|charset=|window\.|\(?document\)?\.|\.cookie|<script|<xss|base64\s*,)#si'
1
  • /system/core/Security.php
'#\s*[a-z\-]+\s*=\s*(\042|\047)([^\\1]*?)\\1#is'
1
  • /system/core/Security.php
'#/\*.*?\*/#s'
1
  • /system/core/Security.php
'|\&([a-z\_0-9\-]+)\=([a-z\_0-9\-/]+)|i'
1
  • /system/core/Security.php
'#' $regex '#is'
1
  • /system/core/Security.php
'#^[0-9a-f]{32}$#iS'
1
  • /system/core/Security.php
'#^[a-zA-Z0-9./]+$#D'
1
  • /system/core/compat/password.php
'/^[1-5]$/'
1
  • /system/libraries/Email.php
'/\<body.*?\>(.*)\<\/body\>/si'
1
  • /system/libraries/Email.php
'#<!--(.*)--\>#'
1
  • /system/libraries/Email.php
'| +\n|'
1
  • /system/libraries/Email.php
'/\{unwrap\}(.*?)\{\/unwrap\}/si'
1
  • /system/libraries/Email.php
'#\A[a-z0-9._+-]+@[a-z0-9.-]{1,253}\z#i'
1
  • /system/libraries/Email.php
'/^\./m'
1
  • /system/libraries/Email.php
'#' preg_quote($this->l_delim $variable $this->r_delim) . '(.+?)' preg_quote($this->l_delim '/' $variable $this->r_delim) . '#s'
1
  • /system/libraries/Parser.php
'|.+/$|'
1
  • /system/libraries/Zip.php
'|.*/(.+)|'
1
  • /system/libraries/Zip.php
'#([^:"])//+#'
1
  • /system/libraries/Pagination.php
"/\n\n+/"
1
  • /system/libraries/Typography.php
'#(<!\-\-.*?\-\->)#s'
1
  • /system/libraries/Typography.php
'#<pre.*?>.*?</pre>#si'
1
  • /system/libraries/Typography.php
'#<.+?>#si'
1
  • /system/libraries/Typography.php
'#\{.+?\}#si'
1
  • /system/libraries/Typography.php
'#<(/*)(' $this->inline_elements ')([ >])#i'
1
  • /system/libraries/Typography.php
'#<(/*)(' $this->block_elements ').*?>#'
1
  • /system/libraries/Typography.php
'#' $this->skip_elements '#'
1
  • /system/libraries/Typography.php
'/^\s*<(?:' $this->block_elements ')/i'
1
  • /system/libraries/Typography.php
'/^(.*?)<(' $this->block_elements ')/i'
1
  • /system/libraries/Typography.php
'#(?(?=<p>\{@HC' $i '\})<p>\{@HC' $i '\}(\s*</p>)|\{@HC' $i '\})#s'
1
  • /system/libraries/Typography.php
"/([^\n])(\n)([^\n])/"
1
  • /system/libraries/Typography.php
'/<p><\/p>(.*)/'
1
  • /system/libraries/Typography.php
'/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i'
1
  • /system/libraries/Image_lib.php
'#\.(jpg|jpeg|gif|png)$#i'
1
  • /system/libraries/Image_lib.php
'/convert$/i'
1
  • /system/libraries/Image_lib.php
'/\D/'
1
  • /system/libraries/Image_lib.php
'/([0-9]{4})([0-9]{2})([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})/'
1
  • /system/libraries/Xmlrpc.php
'/^HTTP\/[0-9\.]+ 200 /'
1
  • /system/libraries/Xmlrpc.php
'/^[+-]?[eE0-9\t \.]+$/'
1
  • /system/libraries/Xmlrpc.php
'/^[+-]?[0-9\t ]+$/'
1
  • /system/libraries/Xmlrpc.php
'|' $key '.*?([0-9\.]+)|i'
1
  • /system/libraries/User_agent.php
'/(;\s?q=[0-9\.]+)|\s/i'
1
  • /system/libraries/User_agent.php
'/(;\s?q=.+)|\s/i'
1
  • /system/libraries/User_agent.php
'/^(.+?);.*$/'
1
  • /system/libraries/Upload.php
'/<(a|body|head|html|img|plaintext|pre|script|table|title)[\s>]/i'
1
  • /system/libraries/Upload.php
'/\{' $val '\}(.*?)\{\/' $val '\}/si'
1
  • /system/libraries/Calendar.php
'/\[(.*?)\]/'
1
  • /system/libraries/Form_validation.php
'/(.*?)\[(.*)\]/'
1
  • /system/libraries/Form_validation.php
'/^(?:([^:]*)\:)?\/\/(.+)$/'
1
  • /system/libraries/Form_validation.php
'/^\[([^\]]+)\]/'
1
  • /system/libraries/Form_validation.php
'#\A[0-9a-f]{2}(?<delimiter>[:-])([0-9a-f]{2}(?P=delimiter)){4}[0-9a-f]{2}\z#i'
1
  • /system/libraries/Form_validation.php
'#((\A|\.)[0-9a-f]{4}){3}\z#i'
1
  • /system/libraries/Form_validation.php
'/^[A-Z0-9 ]+$/i'
1
  • /system/libraries/Form_validation.php
'/^[a-z0-9_-]+$/i'
1
  • /system/libraries/Form_validation.php
'/^[\-+]?[0-9]*\.?[0-9]+$/'
1
  • /system/libraries/Form_validation.php
'/^[\-+]?[0-9]+$/'
1
  • /system/libraries/Form_validation.php
'/^[\-+]?[0-9]+\.[0-9]+$/'
1
  • /system/libraries/Form_validation.php
'|.+?://|'
1
  • /system/libraries/Ftp.php
'#/\.\.?$#'
1
  • /system/libraries/Ftp.php
'/<message>(.*?)<\/message>/is'
1
  • /system/libraries/Trackback.php
'/\s*(\S+)\s*/'
1
  • /system/libraries/Trackback.php
'/\{rows\}(.*?)\{\/rows\}/si'
1
  • /system/libraries/Unit_test.php
'/(.+?)_end$/i'
1
  • /system/libraries/Profiler.php
'#\A' $this->_sid_regexp '\z#'
1
  • /system/libraries/Session/Session.php
'#,?([^,:]+)\:(\d{1,5})(?:\:(\d+))?#'
1
  • /system/libraries/Session/drivers/Session_memcached_driver.php
'#^unix://([^\?]+)(?<options>\?.+)?$#'
1
  • /system/libraries/Session/drivers/Session_redis_driver.php
'#(?:(?:tcp|tls)://)?([^:?]+)(?:\:(\d+))?(?<options>\?.+)?#'
1
  • /system/libraries/Session/drivers/Session_redis_driver.php
'#auth=([^\s&]+)#'
1
  • /system/libraries/Session/drivers/Session_redis_driver.php
'#database=(\d+)#'
1
  • /system/libraries/Session/drivers/Session_redis_driver.php
'#timeout=(\d+\.\d+)#'
1
  • /system/libraries/Session/drivers/Session_redis_driver.php
'#prefix=([^\s&]+)#'
1
  • /system/libraries/Session/drivers/Session_redis_driver.php
'#(\w*://|www\.)[a-z0-9]+(-+[a-z0-9]+)*(\.[a-z0-9]+(-+[a-z0-9]+)*)+(/([^\s()<>;]+\w)?/?)?#i'
1
  • /system/helpers/url_helper.php
'#([\w\.\-\+]+@[a-z0-9\-]+\.[a-z0-9\-\.]+[^[:punct:]\s])#i'
1
  • /system/helpers/url_helper.php
'#' $key '#i' . (UTF8_ENABLED 'u' '')
1
  • /system/helpers/url_helper.php
'/([a-z]+?){1}/i'
1
  • /system/helpers/date_helper.php
'/\040+/'
1
  • /system/helpers/date_helper.php
'/^(\d{2}|\d{4})\-[0-9]{1,2}\-[0-9]{1,2}\s[0-9]{1,2}:[0-9]{1,2}(?::[0-9]{1,2})?(?:\s[AP]M)?$/i'
1
  • /system/helpers/date_helper.php
'#^(data:[a-z,;])|(([a-z]+:)?(?<!data:)//)#i'
1
  • /system/helpers/html_helper.php
'/Android\s(1|2\.[01])/'
1
  • /system/helpers/download_helper.php
'#^(?<ts>\d{10})\.png$#'
1
  • /system/helpers/captcha_helper.php
'/^\s*+(?:\S++\s*+){1,' . (int) $limit '}/'
1
  • /system/helpers/text_helper.php
'/ {2,}/'
1
  • /system/helpers/text_helper.php
'/\&#(\d+)\;/'
1
  • /system/helpers/text_helper.php
"/({$delim})(" $badword ")({$delim})/i"
1
  • /system/helpers/text_helper.php
"/{$delim}(" $badword "){$delim}/i"
1
  • /system/helpers/text_helper.php
'/(' preg_quote($phrase'/') . ')/i' . (UTF8_ENABLED 'u' '')
1
  • /system/helpers/text_helper.php
'#(^|[^:])//+#'
1
  • /system/helpers/string_helper.php
'#' preg_quote($character'#') . '{2,}#'
1
  • /system/helpers/string_helper.php
'/(.+)' preg_quote($separator'/') . '([0-9]+)$/'
1
  • /system/helpers/string_helper.php
'/^(\.htaccess|index\.(html|htm|php)|web\.config)$/i'
1
  • /system/helpers/file_helper.php
'/[\s_]+/'
1
  • /system/helpers/inflector_helper.php
'/[\s]+/'
1
  • /system/helpers/inflector_helper.php
'/[' preg_quote($separator) . ']+/'
1
  • /system/helpers/inflector_helper.php
'#^(http:\/\/|https:\/\/|www\.|ftp|php:\/\/)#i'
1
  • /system/helpers/path_helper.php
'#<img[\s/]+.*?src\s*=\s*?(([^\s"\'=<>`]+)).*?\>#i'
1
  • /system/core/Security.php
'#<img[\s/]+.*?src\s*=\s*(["\'])([^\\1]+?)\\1.*?\>#i'
1
  • /system/core/Security.php
'/\x00+/'
1
  • /system/libraries/Email.php
'/<span style="color: #([A-Z0-9]+)">&lt;\?php(&nbsp;| )/i'
1
  • /system/helpers/text_helper.php
'/<span style="color: #[A-Z0-9]+"\><\/span>/i'
1
  • /system/helpers/text_helper.php
'/(<span style="color: #[A-Z0-9]+">.*?)\?&gt;<\/span>\n<\/span>\n<\/code>/is'
1
  • /system/helpers/text_helper.php
'|.+?\.zip$|'
2
  • /system/database/DB_utility.php
  • /system/libraries/Zip.php
"/'[^']*'|\"[^\"]*\"/i"
2
  • /system/database/DB_driver.php
  • /system/database/drivers/odbc/odbc_driver.php
'/([^:]+):/'
2
  • /system/database/drivers/pdo/pdo_driver.php
  • /system/database/drivers/pdo/pdo_driver.php
'`SELECT`i'
2
  • /system/database/drivers/pdo/subdrivers/pdo_firebird_driver.php
  • /system/database/drivers/ibase/ibase_driver.php
'/^\s*DELETE\s+FROM\s+(\S+)\s*$/i'
2
  • /system/database/drivers/mysql/mysql_driver.php
  • /system/database/drivers/mysqli/mysqli_driver.php
'#^' $key '$#'
2
  • /system/core/Router.php
  • /system/core/Router.php
'/(?:^[^\[]+)|\[[^]]*\]/'
2
  • /system/core/Input.php
  • /system/libraries/Upload.php
'/[\200-\377]/'
2
  • /system/libraries/Email.php
  • /system/libraries/Email.php
'#\A([^@]+)@(.+)\z#'
2
  • /system/libraries/Email.php
  • /system/libraries/Form_validation.php
'|\{unwrap\}(.+?)\{/unwrap\}|s'
2
  • /system/libraries/Email.php
  • /system/helpers/text_helper.php
'!\[url.+\]|://|www\.!'
2
  • /system/libraries/Email.php
  • /system/helpers/text_helper.php
'|' preg_quote($key) . '|i'
2
  • /system/libraries/User_agent.php
  • /system/libraries/User_agent.php
'#^([a-z]+:)?//#i'
2
  • /system/helpers/html_helper.php
  • /system/helpers/html_helper.php
'/&#(\d+);/'
2
  • /system/helpers/xml_helper.php
  • /system/libraries/Trackback.php
'/&(\w+);/'
2
  • /system/helpers/xml_helper.php
  • /system/libraries/Trackback.php
'/' $temp '(\d+);/'
2
  • /system/helpers/xml_helper.php
  • /system/libraries/Trackback.php
'/' $temp '(\w+);/'
2
  • /system/helpers/xml_helper.php
  • /system/libraries/Trackback.php
'/\s+/'
3
  • /system/database/DB_driver.php
  • /system/libraries/Upload.php
  • /system/libraries/Trackback.php
'| +|'
3
  • /system/libraries/Email.php
  • /system/helpers/text_helper.php
  • /system/libraries/Email.php
'/(.+?)\/*$/'
3
  • /system/libraries/Upload.php
  • /system/libraries/Calendar.php
  • /system/libraries/Ftp.php
'#^(\w+:)?//#i'
3
  • /system/helpers/url_helper.php
  • /system/helpers/url_helper.php
  • /system/helpers/url_helper.php
'/' preg_quote($this->bind_marker'/') . '/i'
4
  • /system/database/DB_driver.php
  • /system/database/DB_driver.php
  • /system/database/drivers/odbc/odbc_driver.php
  • /system/database/drivers/odbc/odbc_driver.php
'#^(INSERT|UPDATE).*RETURNING\s.+(\,\s?.+)*$#is'
4
  • /system/database/drivers/postgre/postgre_driver.php
  • /system/database/drivers/pdo/subdrivers/pdo_odbc_driver.php
  • /system/database/drivers/pdo/subdrivers/pdo_pgsql_driver.php
  • /system/database/drivers/odbc/odbc_driver.php
'/(?:\s|\.)' $field_regexp '$/i'
4
  • /system/database/drivers/sqlsrv/sqlsrv_driver.php
  • /system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
  • /system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php
  • /system/database/drivers/mssql/mssql_driver.php
'/^(SELECT( DISTINCT)?)/i'
4
  • /system/database/drivers/sqlsrv/sqlsrv_driver.php
  • /system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
  • /system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php
  • /system/database/drivers/mssql/mssql_driver.php
'/(^\SELECT (DISTINCT)?)/i'
4
  • /system/database/drivers/sqlsrv/sqlsrv_driver.php
  • /system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php
  • /system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php
  • /system/database/drivers/mssql/mssql_driver.php
'/, $/'
4
  • /system/database/drivers/mysql/mysql_utility.php
  • /system/database/drivers/mysql/mysql_utility.php
  • /system/database/drivers/mysqli/mysqli_utility.php
  • /system/database/drivers/mysqli/mysqli_utility.php
'/\<(.*)\>/'
4
  • /system/libraries/Email.php
  • /system/libraries/Email.php
  • /system/libraries/Email.php
  • /system/libraries/Email.php
'/^([a-z\-]+\/[a-z0-9\-\.\+]+)(;\s.+)?$/'
4
  • /system/libraries/Upload.php
  • /system/libraries/Upload.php
  • /system/libraries/Upload.php
  • /system/libraries/Upload.php