Regex Inventory

List of all Regex mentioned in the code..

ValueCountFile:Line
'`^/(\.git|cache|bin|logs|backup|webserver-configs|tests)/`ui'1
  • /system/router.php
'`^/(system|vendor)/(.*)\.(txt|xml|md|html|json|yaml|yml|php|pl|py|cgi|twig|sh|bat)$`ui'1
  • /system/router.php
'`^/(user)/(.*)\.(txt|md|json|yaml|yml|php|pl|py|cgi|twig|sh|bat)$`ui'1
  • /system/router.php
'`\.md$`ui'1
  • /system/router.php
'`^/(LICENSE\.txt|composer\.lock|composer\.json|\.htaccess)$`ui'1
  • /system/router.php
'/./us'1
  • /system/src/DOMLettersIterator.php
'/^(.+); *name="([^"]+)"(; *filename="([^"]+)")?/'1
  • /system/src/Grav/Framework/RequestHandler/Middlewares/MultipartRequestSupport.php
'#[^-+_.A-Za-z0-9]#'1
  • /system/src/Grav/Framework/Cache/Adapter/FileCache.php
'/[,"\r\n]/u'1
  • /system/src/Grav/Framework/File/Formatter/CsvFormatter.php
"/^---\n(.+?)\n---\n{0,}(.*)$/uis"1
  • /system/src/Grav/Framework/File/Formatter/MarkdownFormatter.php
"/\n\t/"1
  • /system/src/Grav/Framework/File/Formatter/MarkdownFormatter.php
'`(\\\\|\./|//|\.\.)`'1
  • /system/src/Grav/Framework/Filesystem/Filesystem.php
'%[^:/@?&=#]+%u'1
  • /system/src/Grav/Framework/Uri/UriFactory.php
'/(?:[^a-zA-Z0-9_\-\.~!\$&\'\(\)\*\+,;=]+|%(?![A-Fa-f0-9]{2}))/u'1
  • /system/src/Grav/Framework/Uri/UriPartsFilter.php
'/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/u'1
  • /system/src/Grav/Framework/Uri/UriPartsFilter.php
'/(?:[^a-zA-Z0-9_\-\.~:@&=\+\$,\/;%]+|%(?![A-Fa-f0-9]{2}))/u'1
  • /system/src/Grav/Framework/Uri/UriPartsFilter.php
'/(?:[^a-zA-Z0-9_\-\.~!\$&\'\(\)\*\+,;=%:@\/\?]+|%(?![A-Fa-f0-9]{2}))/u'1
  • /system/src/Grav/Framework/Uri/UriPartsFilter.php
'/\.yaml/'1
  • /system/src/Grav/Framework/Flex/FlexDirectory.php
'|\.obj$|'1
  • /system/src/Grav/Framework/Flex/Flex.php
'|(\.[a-z0-9]*)$|ui'1
  • /system/src/Grav/Framework/Flex/Storage/AbstractFilesystemStorage.php
'/^[^\\/?*:;{}\\\\\\n]+$/u'1
  • /system/src/Grav/Framework/Flex/Storage/AbstractFilesystemStorage.php
'/^\d+\./u'1
  • /system/src/Grav/Framework/Flex/Pages/FlexPageIndex.php
'/\d+$/'1
  • /system/src/Grav/Framework/Flex/Pages/Traits/PageLegacyTrait.php
'/\.md$/'1
  • /system/src/Grav/Framework/Flex/Pages/Traits/PageLegacyTrait.php
'|^modular/|'1
  • /system/src/Grav/Framework/Flex/Pages/Traits/PageLegacyTrait.php
'/\[(.*)]/'1
  • /system/src/Grav/Framework/Media/MediaObject.php
'/^[-,a-zA-Z0-9]{1,128}$/'1
  • /system/src/Grav/Framework/Session/Session.php
'#\\\|_(?!.+\\\)#'1
  • /system/src/Grav/Common/Themes.php
'/\[plugin:(?:' . preg_quote($this->name, '/') . ')\]\(' . $internal_regex . '\)/i'1
  • /system/src/Grav/Common/Plugin.php
'#/__clockwork(?:/(?<id>[0-9-]+))?(?:/(?<direction>(?:previous|next)))?(?:/(?<count>\d+))?#'1
  • /system/src/Grav/Common/Debugger.php
'#(?<id>[0-9-]+|latest)/extended#'1
  • /system/src/Grav/Common/Debugger.php
'/.+\.(yaml|md)$/i'1
  • /system/src/Grav/Common/Debugger.php
'`(Template.php|TemplateWrapper.php)$`'1
  • /system/src/Grav/Common/Debugger.php
'/(composer|composer\.phar)$/'1
  • /system/src/Grav/Common/Composer.php
'/^#!.+php/i'1
  • /system/src/Grav/Common/Composer.php
'/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/'1
  • /system/src/Grav/Common/Uri.php
'|^' . preg_quote($setup_base, '|') . '|'1
  • /system/src/Grav/Common/Uri.php
'/^(?:(https?|ftp|telnet):)?\/\/((?:[a-z0-9@:.-]|%[0-9A-F]{2}){3,})(?::(\d+))?((?:\/(?:[a-z0-9-._~!$&\'\(\)\*\+\,\;\=\:\@]|%[0-9A-F]{2})*)*)(?:\?((?:[a-z0-9-._~!$&\'\(\)\*\+\,\;\=\:\/?@]|%[0-9A-F]{2})*))?(?:#((?:[a-z0-9-._~!$&\'\(\)\*\+\,\;\=\:\/?@]|%[0-9A-F]{2})*))?/'1
  • /system/src/Grav/Common/Uri.php
'/(\/)\/+/'1
  • /system/src/Grav/Common/Uri.php
'#(' . $root . '$|' . $root . '/)#'1
  • /system/src/Grav/Common/Utils.php
'/^' . $regex . '$/is'1
  • /system/src/Grav/Common/Utils.php
'/' . preg_quote($opening, '/') . '(.*?)' . preg_quote($closing, '/') . '/'1
  • /system/src/Grav/Common/Utils.php
'{^((?:http[s]?:\/\/[^\/]+)|(?:\/\/[^\/]+))(.*)}'1
  • /system/src/Grav/Common/Utils.php
'/^(@\w+|\w+@|@\w+@)([^:]*)(.*)$/u'1
  • /system/src/Grav/Common/Utils.php
'/[^bkmgtpezy]/i'1
  • /system/src/Grav/Common/Utils.php
'/[^0-9\.]/'1
  • /system/src/Grav/Common/Utils.php
"#^\/[\\\/]+\/#"1
  • /system/src/Grav/Common/Grav.php
'/.*(\[(30[1-7])\])(.\w+|\/.*?)?$/'1
  • /system/src/Grav/Common/Grav.php
'~(bot|crawl)~i'1
  • /system/src/Grav/Common/Browser.php
'!(&#|\\\)[xX]([0-9a-fA-F]+);?!u'1
  • /system/src/Grav/Common/Security.php
'!(&#[0-9]+);?!u'1
  • /system/src/Grav/Common/Security.php
'/(({{\s*|{%\s*)[^}]*?(' . implode('|', $bad_twig) . ')[^}]*?(\s*}}|\s*%}))/i'1
  • /system/src/Grav/Common/Security.php
'/([a-zd])([A-Z])/'1
  • /system/src/Grav/Common/Inflector.php
'/[^\p{L}^0-9]+/u'1
  • /system/src/Grav/Common/Inflector.php
'/([a-z])([A-Z])/'1
  • /system/src/Grav/Common/Inflector.php
'/([0-9])([A-Z])/'1
  • /system/src/Grav/Common/Inflector.php
'/_id$/'1
  • /system/src/Grav/Common/Inflector.php
'%(' . preg_quote($language, '%') . ')?\.md$%'1
  • /system/src/Grav/Common/Page/Page.php
'/^[^\.]*(' . implode('|', array_map(static function ($str) { /**/ } , $page_extensions)) . ')$/'1
  • /system/src/Grav/Common/Page/Pages.php
'/^(\d+\.)_/'1
  • /system/src/Grav/Common/Page/Pages.php
'/\[(.*)\]/'1
  • /system/src/Grav/Common/Page/Markdown/Excerpts.php
'|^' . preg_quote($image_path, '|') . '|'1
  • /system/src/Grav/Common/Page/Medium/ImageMedium.php
'/^0x[a-f0-9]{6}$/i'1
  • /system/src/Grav/Common/Page/Medium/ImageMedium.php
'/(.*)@(\d+)x\.(.*)$/'1
  • /system/src/Grav/Common/Page/Medium/AbstractMedia.php
'|languages\.yaml$|'1
  • /system/src/Grav/Common/Config/CompiledLanguages.php
'|[.\/]+|'1
  • /system/src/Grav/Common/Config/ConfigFileFinder.php
'/(?:{{|{%|{#)(.*)(?:}}|%}|#})/'1
  • /system/src/Grav/Common/Markdown/ParsedownGravTrait.php
'/^&#?\w+;/'1
  • /system/src/Grav/Common/Markdown/ParsedownGravTrait.php
'/[^\* ]/'1
  • /system/src/Grav/Common/Scheduler/Cron.php
'/-+/'1
  • /system/src/Grav/Common/Scheduler/Cron.php
'/[^-\*]/'1
  • /system/src/Grav/Common/Scheduler/Cron.php
'/^\*\/([0-9]+),?/'1
  • /system/src/Grav/Common/Scheduler/Cron.php
'/^([0-9]+)-([0-9]+)\/([0-9]+),?/'1
  • /system/src/Grav/Common/Scheduler/Cron.php
'/^([0-9]+)-([0-9]+),?/'1
  • /system/src/Grav/Common/Scheduler/Cron.php
'/^([0-9]+),?/'1
  • /system/src/Grav/Common/Scheduler/Cron.php
'/^(?!#).* .* .* .* .* ' . $command . '/m'1
  • /system/src/Grav/Common/Scheduler/Scheduler.php
'/(^\/(' . $this->getAvailable( ) . '))(?:\/|\?|$)/i'1
  • /system/src/Grav/Common/Language/Language.php
"/\\" . $matches[1] . '/'1
  • /system/src/Grav/Common/Language/Language.php
'/[a-zA-Z]{2}-[a-zA-Z]{2}/'1
  • /system/src/Grav/Common/Language/LanguageCodes.php
'#' . self::$regex . '#'1
  • /system/src/Grav/Common/GPM/Licenses.php
'/name="(form-nonce|__unique_form_id__)" value="[^"]+"/'1
  • /system/src/Grav/Console/Cli/PageSystemValidatorCommand.php
'`src=("|\'|&quot;)/images/./././././[^"]+\\1`'1
  • /system/src/Grav/Console/Cli/PageSystemValidatorCommand.php
'/\?\d{10}/'1
  • /system/src/Grav/Console/Cli/PageSystemValidatorCommand.php
'|/themes/[^/]+|ui'1
  • /system/src/Grav/Common/GPM/Installer.php
'#\./$#'1
  • /system/src/Grav/Common/GPM/Installer.php
'/[^a-zA-Z0-9]+/'1
  • /system/src/Grav/Common/GPM/Installer.php
'/^class\\s{1,}[a-zA-Z0-9]{1,}\\s{1,}extends.+Theme/m'1
  • /system/src/Grav/Common/GPM/GPM.php
'/^class\\s{1,}[a-zA-Z0-9]{1,}\\s{1,}extends.+Plugin/m'1
  • /system/src/Grav/Common/GPM/GPM.php
'/http[s]?:\/\/(?:.*@)?(github|bitbucket)(?:.org|.com)\/.*\/(.*)/'1
  • /system/src/Grav/Console/Gpm/InstallCommand.php
'/\.git$/'1
  • /system/src/Grav/Console/Gpm/InstallCommand.php
'~^user/~i'1
  • /system/src/Grav/Common/GPM/Remote/AbstractPackageCollection.php
"/[\w\-.]+/"1
  • /system/src/Grav/Common/GPM/Remote/Package.php
'/[\\\\\/:"*?&<>|]+/m'1
  • /system/src/Grav/Console/Gpm/InstallCommand.php
"/[\w\-\.]+/"1
  • /system/src/Grav/Common/GPM/Remote/GravCore.php
'/.php$/'1
  • /system/src/Grav/Console/Application/CommandLoader/PluginCommandLoader.php
'/((?:href|src) *= *[\'"](?!(http|ftp)))/i'1
  • /system/src/Grav/Common/Twig/Extension/GravExtension.php
'regexMatch'1
  • /system/src/Grav/Common/Twig/Extension/GravExtension.php
'/^<\?xml.*\?>/'1
  • /system/src/Grav/Common/Twig/Extension/GravExtension.php
'/<style.*<\/style>/s'1
  • /system/src/Grav/Common/Twig/Extension/GravExtension.php
'/^<svg[^>]*(class=\"([^"]*)\")[^>]*>/'1
  • /system/src/Grav/Common/Twig/Extension/GravExtension.php
"#(.*)--(\d*).zip#"1
  • /system/src/Grav/Common/Backup/Backups.php
'/\.yaml$/'1
  • /system/src/Grav/Common/Data/Blueprint.php
'/\R/um'1
  • /system/src/Grav/Common/Data/Validation.php
'/^\#[0-9a-fA-F]{3}[0-9a-fA-F]{3}?$/u'1
  • /system/src/Grav/Common/Data/Validation.php
'/^\d{4}-W\d{2}$/u'1
  • /system/src/Grav/Common/Data/Validation.php
"`^{$params}$`u"1
  • /system/src/Grav/Common/Data/Validation.php
'|[?#].*|'1
  • /system/src/Grav/Common/Assets/BlockAssets.php
'#^' . $uri->rootUrl( ) . '#'1
  • /system/src/Grav/Common/Assets/BaseAsset.php
'{\/\*# (.*?) \*\/}'1
  • /system/src/Grav/Common/Assets/Pipeline.php
'{url\(([\'\"]?)(.*?)\1\)|(@import)\s+([\'\"])(.*?)\4}'1
  • /system/src/Grav/Common/Assets/Pipeline.php
'{import.+from\s?[\'|\"](.+?)[\'|\"]}'1
  • /system/src/Grav/Common/Assets/Pipeline.php
'#' . preg_quote($this->base_url, '#') . '#'1
  • /system/src/Grav/Common/Assets/Traits/AssetUtilsTrait.php
'{@import.*?["\']([^"\']+)["\'].*?;}'1
  • /system/src/Grav/Common/Assets/Traits/AssetUtilsTrait.php
'/(\/\d+)\.[^\/]+/u'1
  • /system/src/Grav/Common/Flex/Types/Pages/PageIndex.php
'|modular/|'1
  • /system/src/Grav/Common/Flex/Types/Pages/PageObject.php
'|^(\d+)\.(.+)$|'1
  • /system/src/Grav/Common/Flex/Types/Pages/Storage/PageStorage.php
'/\/\d+\./u'1
  • /system/src/Grav/Common/Flex/Types/Pages/PageIndex.php
'/<.*?>/'1
  • /system/src/Grav/Common/Helpers/Truncator.php
'/(<.+?>)?([^<>]*)/s'1
  • /system/src/Grav/Common/Helpers/Truncator.php
'/^<(\s*.+?\/\s*|\s*(img|br|input|hr|area|base|basefont|col|frame|isindex|link|meta|param)(\s.+?)?)>$/is'1
  • /system/src/Grav/Common/Helpers/Truncator.php
'/^<\s*\/([^\s]+?)\s*>$/s'1
  • /system/src/Grav/Common/Helpers/Truncator.php
'/^<\s*([^\s>!]+).*?>$/s'1
  • /system/src/Grav/Common/Helpers/Truncator.php
'/(.*)- Trace:(.*)/'1
  • /system/src/Grav/Common/Helpers/LogViewer.php
"`({$preg_name}@\d+x\.{$preg_ext}(?:\.meta\.yaml)?$|{$preg_filename}\.meta\.yaml)$`"1
  • /system/src/Grav/Common/Media/Traits/MediaUploadTrait.php
'/[a-z0-9]{40}-(.*)/'1
  • /system/src/Grav/Common/Media/Traits/ImageMediaTrait.php
'/(@\d+x)?$/'1
  • /system/src/Grav/Common/Media/Traits/ImageMediaTrait.php
"/^{$space}(['\"]?){$current}\\1\:/"1
  • /system/src/Grav/Installer/YamlUpdater.php
'/(([\'"])[^\2]*\2)/'1
  • /system/src/Grav/Installer/YamlUpdater.php
"/define\('GRAV_VERSION', '([^']+)'\);/mu"1
  • /system/src/Grav/Installer/Install.php
'/\\\/'1
  • /system/src/Grav/Framework/File/Formatter/IniFormatter.php
"/\t/"1
  • /system/src/Grav/Framework/File/Formatter/IniFormatter.php
"/\n/"1
  • /system/src/Grav/Framework/File/Formatter/IniFormatter.php
"/\r/"1
  • /system/src/Grav/Framework/File/Formatter/IniFormatter.php
'/"/'2
  • /system/src/Grav/Framework/File/Formatter/CsvFormatter.php
  • /system/src/Grav/Framework/File/Formatter/IniFormatter.php
"/(\r\n|\r)/u"2
  • /system/src/Grav/Framework/File/Formatter/MarkdownFormatter.php (2)
'%[^:/@?&=#]+%usD'2
  • /system/src/Grav/Common/Uri.php
  • /system/src/Grav/Common/Utils.php
'/\/{1,}([^\:\#\/\?]*' . Grav::instance( )['config']->get('system.param_sep') . '[^\:\#\/\?]*)/'2
  • /system/src/Grav/Common/Uri.php (2)
'!\s!u'2
  • /system/src/Grav/Common/Security.php (2)
'/(' . $_plural . ')$/i'2
  • /system/src/Grav/Common/Inflector.php (2)
'/(' . $_singular . ')$/i'2
  • /system/src/Grav/Common/Inflector.php (2)
'/[^\p{L}^0-9]+/'2
  • /system/src/Grav/Common/Inflector.php (2)
'/([A-Z]+)([A-Z][a-z])/'2
  • /system/src/Grav/Common/Inflector.php (2)
'~([0-9]+)\.~'2
  • /system/src/Grav/Common/Page/Pages.php
  • /system/src/Grav/Common/Flex/Types/Pages/PageCollection.php
'|^' . preg_quote(GRAV_ROOT, '|') . '|'2
  • /system/src/Grav/Common/Page/Medium/ImageMedium.php
  • /system/src/Grav/Common/Media/Traits/MediaFileTrait.php
'/\s+/'2
  • /system/src/Grav/Common/Scheduler/Cron.php
  • /system/src/Grav/Common/Data/Validation.php
'/\d\.\s\[\]\(#(.*)\)/'2
  • /system/src/Grav/Console/Gpm/InfoCommand.php
  • /system/src/Grav/Console/Gpm/SelfupgradeCommand.php
'regexReplace'2
  • /system/src/Grav/Common/Twig/Extension/GravExtension.php (2)
"/\r\n|\r/um"2
  • /system/src/Grav/Common/Data/Validation.php (2)
'/&[0-9a-z]{2,8};|&#[0-9]{1,7};|[0-9a-f]{1,6};/i'2
  • /system/src/Grav/Common/Helpers/Truncator.php (2)
'#' . $find . '$#'2
  • /system/src/Grav/Common/Media/Traits/MediaUploadTrait.php (2)
'/({#.*?#})/mu'2
  • /system/src/Grav/Framework/Flex/Pages/Traits/PageContentTrait.php
  • /system/src/Grav/Common/Page/Page.php
'/({{.*?}})/mu'2
  • /system/src/Grav/Framework/Flex/Pages/Traits/PageContentTrait.php
  • /system/src/Grav/Common/Page/Page.php
'/({%.*?%})/mu'2
  • /system/src/Grav/Framework/Flex/Pages/Traits/PageContentTrait.php
  • /system/src/Grav/Common/Page/Page.php
'`' . $token[0] . '([A-Za-z0-9+/]+={0,2})' . $token[1] . '`mu'2
  • /system/src/Grav/Framework/Flex/Pages/Traits/PageContentTrait.php
  • /system/src/Grav/Common/Page/Page.php
'`^(/|[a-z]:[\\\/])`ui'3
  • /system/defines.php (3)
'|^\d+\.|'3
  • /system/src/Grav/Common/Flex/Types/Pages/PageObject.php (3)
'![\\\/]+!'4
  • /system/src/Grav/Common/Filesystem/Folder.php (4)
'{^\/{1}\w}'4
  • /system/src/Grav/Common/Assets/Pipeline.php (4)
'/^[0-9]+\./u'6
  • /system/src/Grav/Common/Page/Page.php (6)
'/s$/'7
  • /system/src/Grav/Console/Gpm/IndexCommand.php (7)