List of all Regex mentioned in the code..
Value | Count | File:Line |
---|---|---|
'/us$/' | 1 |
|
'/^([ ]*)/' | 1 |
|
'{ (\n)? # leading line = $1 (^[ ]*) # leading whitespace = $2 (' . $marker_any_re . ' # list marker and space = $3 (?:[ ]+|(?=\n)) # space only required if item is not empty ) ((?s:.*?)) # list item text = $4 (?:(\n+(?=\n))|\n) # tailing blank line = $5 (?= \n* (\z | \2 (' . $marker_any_re . ') (?:[ ]+|(?=\n)))) }xm' | 1 |
|
'/\n+$/' | 1 |
|
'{ (?:\n\n|\A\n?) ( # $1 = the code block -- one or more lines, starting with a space/tab (?> [ ]{' . $this->tab_width . '} # Lines must start with a tab or a tab-width of spaces .*\n+ )+ ) ((?=^[ ]{0,' . $this->tab_width . '}\S)|\Z) # Lookahead for non-space at line-start, or end of doc }xm' | 1 |
|
'/ ( # Wrap whole match in $1 (?> ^[ ]*>[ ]? # ">" at the start of a line .+\n # rest of the first line (.+\n)* # subsequent consecutive lines \n* # blanks )+ ) /xm' | 1 |
|
'/^[ ]*>[ ]?|^[ ]+$/m' | 1 |
|
'/^/m' | 1 |
|
'{(\s*<pre>.+?</pre>)}sx' | 1 |
|
'/^ /m' | 1 |
|
'/^B\x1A[0-9]+B$/' | 1 |
|
'/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/' | 1 |
|
'{ (?:(?<=\n)\n|\A\n?) # Must eat the newline ' . $whole_list_re . ' }mx' | 1 |
|
'{<((https?|ftp|dict):[^\'">\s]+)>}i' | 1 |
|
'{ < (?:mailto:)? ( [-.\w\x80-\xFF]+ \@ [-a-z0-9\x80-\xFF]+(\.[-a-z0-9\x80-\xFF]+)*\.[a-z]+ ) > }xi' | 1 |
|
'/^(.*?[^`])' . preg_quote($token) . '(?!`)(.*)$/sm' | 1 |
|
'/^(\t|[ ]{1,' . $this->tab_width . '})/m' | 1 |
|
'/^.*\t.*$/m' | 1 |
|
'/[\x00-\xBF]|[\xC0-\xFF][\x80-\xBF]*/' | 1 |
|
'/(.)\x1A[0-9]+\1/' | 1 |
|
'{^(?>.+?|\n(?!\n))*?(?<!`)' . $tag_re . '(?!`)}' | 1 |
|
'{^(?>.*\n)+?' . $tag_re . ' *\n}' | 1 |
|
'{^<(?:' . $this->block_tags_re . ')\b}' | 1 |
|
"/$marker_ul_re/" | 1 |
|
'{ ^ ' . $whole_list_re . ' }mx' | 1 |
|
'/(?:^\n?|\n\n)*$/' | 1 |
|
'/^[ ]+$/m' | 1 |
|
'~\b(?:[\w-]++://?+|www[.])[^\s()<>]+(?:\([\w\d]++\)|(?:[^[:punct:]\s]|/))~' | 1 |
|
'/[sxz]es$/' | 1 |
|
'/^([^\[]*+)\[(.*)\]$/' | 1 |
|
'/^([^\[]*+)\[\K.*(?=\]$)/' | 1 |
|
'{^$|^<(p|ul|ol|dl|pre|blockquote)>}i' | 1 |
|
'{\n{2,}}' | 1 |
|
'{</?p>}i' | 1 |
|
'{^\xEF\xBB\xBF|\x1A}' | 1 |
|
'{\r\n?}' | 1 |
|
'{ ^[ ]{0,' . $less_than_tab . '}\[(.+)\][ ]?: # id = $1 [ ]* \n? # maybe *one* newline [ ]* <?(\S+?)>? # url = $2 [ ]* \n? # maybe one newline [ ]* (?: (?<=\s) # lookbehind for whitespace ["(] (.*?) # title = $3 [")] [ ]* )? # title is optional (?:\n+|\Z) }xm' | 1 |
|
'{^-(?: |$)}' | 1 |
|
'{(?> (?> (?<=\n\n) # Starting after a blank line | # or \A\n? # the beginning of the doc ) ( # save in $1 # Match from `\n<tag>` to `</tag>\n`, handling nested tags # in between. [ ]{0,' . $less_than_tab . '} <(' . $block_tags_b_re . ')# start tag = $2 ' . $attr . '> # attributes followed by > and \n ' . $content . ' # content, support nesting </\2> # the matching end tag [ ]* # trailing spaces/tabs (?=\n+|\Z) # followed by a newline or end of document | # Special version for tags of group a. [ ]{0,' . $less_than_tab . '} <(' . $block_tags_a_re . ')# start tag = $3 ' . $attr . '>[ ]*\n # attributes followed by > ' . $content2 . ' # content, support nesting </\3> # the matching end tag [ ]* # trailing spaces/tabs (?=\n+|\Z) # followed by a newline or end of document | # Special case just for <hr />. It was easier to make a special # case than to make the other regex more complicated. [ ]{0,' . $less_than_tab . '} <(hr) # start tag = $2 ' . $attr . ' # attributes /?> # the matching end tag [ ]* (?=\n{2,}|\Z) # followed by a blank line or end of document | # Special case for standalone HTML comments: [ ]{0,' . $less_than_tab . '} (?s: <!-- .*? -- | 1 |
|
'{ ^[ ]{0,3} # Leading space ([-*_]) # $1: First marker (?> # Repeated marker group [ ]{0,2} # Zero, one, or two spaces. \1 # Marker character ){2,} # Group repeated at least twice [ ]* # Tailing spaces $ # End of line. }mx' | 1 |
|
'/ {2,}\n/' | 1 |
|
'{ ( # wrap whole match in $1 \[ (' . $this->nested_brackets_re . ') # link text = $2 \] [ ]? # one optional space (?:\n[ ]*)? # one optional newline followed by spaces \[ (.*?) # id = $3 \] ) }xs' | 1 |
|
'{ ( # wrap whole match in $1 \[ (' . $this->nested_brackets_re . ') # link text = $2 \] \( # literal paren [ ]* (?: <(\S*)> # href = $3 | (' . $this->nested_url_parenthesis_re . ') # href = $4 ) [ ]* ( # $5 ([\'"]) # quote char = $6 (.*?) # Title = $7 \6 # matching quote [ ]* # ignore any spaces/tabs between closing quote and ) )? # title is optional \) ) }xs' | 1 |
|
'{[ ]?\n}' | 1 |
|
'{ ( # wrap whole match in $1 !\[ (' . $this->nested_brackets_re . ') # alt text = $2 \] [ ]? # one optional space (?:\n[ ]*)? # one optional newline followed by spaces \[ (.*?) # id = $3 \] ) }xs' | 1 |
|
'{ ( # wrap whole match in $1 !\[ (' . $this->nested_brackets_re . ') # alt text = $2 \] \s? # One optional whitespace character \( # literal paren [ ]* (?: <(\S*)> # src url = $3 | (' . $this->nested_url_parenthesis_re . ') # src url = $4 ) [ ]* ( # $5 ([\'"]) # quote char = $6 (.*?) # title = $7 \6 # matching quote [ ]* )? # title is optional \) ) }xs' | 1 |
|
'{ ^(.+?)[ ]*\n(=+|-+)[ ]*\n+ }mx' | 1 |
|
'{ ^(\#{1,6}) # $1 = string of #\'s [ ]* (.+?) # $2 = Header text [ ]* \#* # optional closing #\'s (not counted) \n+ }xm' | 1 |
|
'{^<(?:' . $this->context_block_tags_re . ')\b}' | 1 |
|
'{ ^ # Start of text following the tag. (?>[ ]*<!--.*?-->)? # Optional comment. [ ]*\n # Must be followed by newline. }xs' | 1 |
|
'~\b(([\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/)))~' | 1 |
|
'/^(\S*)(?:\s*(.+?))?$/s' | 1 |
|
'/^[A-Z_\x7f-\xff][A-Z0-9_\x7f-\xff]*$/' | 1 |
|
'/^(\w+)\W(.*)$/D' | 1 |
|
'/^' . Kodoc::$regex_class_member . '/' | 1 |
|
'/^\s*\* ?(.*)\n/m' | 1 |
|
'/^@(\S+)\s*(.+)?$/' | 1 |
|
'/^(\s+)/' | 1 |
|
'~(?<!!)(\[.+?\]\()(?!\w++://)(?!#)(\S*(?:\s*+".+?")?\))~' | 1 |
|
'/\[' . Kodoc::$regex_class_member . '\]/i' | 1 |
|
'/^\[!!\]\s*+(.+?)(?=\n{2,}|$)/s' | 1 |
|
'/^(\S+)(?:\s*(?:\$' . $param->name . '\s*)?(.+))?$/s' | 1 |
|
'{ ^[ ]{0,' . $less_than_tab . '}\*\[(.+?)\][ ]?: # abbr_id = $1 (.*) # text = $2 (no blank lines allowed) }xm' | 1 |
|
'/^(\S*)(?:\s*(.+?))?$/' | 1 |
|
'~\*{2}(.+?)\*{2}[^*]+\[[^\]]+\]\(' . preg_quote($page) . '\)~mu' | 1 |
|
'~\[([^\]]+)\]\(' . preg_quote($page) . '\)~mu' | 1 |
|
'/^(\s*[\-\*\+]\s*)([^\[\]]+)$/m' | 1 |
|
'/./' | 1 |
|
'/\d+\.\d+(?:\.\d+)?/' | 1 |
|
'~[^\\pL\d.]+~u' | 1 |
|
'~[^-\w.]+~' | 1 |
|
'/[\x80-\xff]/' | 1 |
|
'/^.$/u' | 1 |
|
'{' . '(?<![\w\x1A])' . '(?:' . $this->abbr_word_re . ')' . '(?![\w\x1A])' . '}' | 1 |
|
'{</p>$}' | 1 |
|
'{^<(?:' . $this->clean_tags_re . ')\b}' | 1 |
|
' { ^ # Start of a line [ ]{0,' . $less_than_tab . '} # Allowed whitespace. (\S.*[|].*) \n # $1: Header row (at least one pipe) [ ]{0,' . $less_than_tab . '} # Allowed whitespace. ([-:]+[ ]*[|][-| :]*) \n # $2: Header underline ( # $3: Cells (?> .* [|] .* \n # Row content )* ) (?=\n|\Z) # Stop at final double newline. }xm' | 1 |
|
'{^</?(?:' . $enclosing_tag_re . ')\b}' | 1 |
|
'{^</?(?:' . $this->auto_close_tags_re . ')\b}' | 1 |
|
'{^</?' . $base_tag_name_re . '\b}' | 1 |
|
'/^1|block|span$/' | 1 |
|
'{^<(?:' . $this->contain_span_tags_re . ')\b}' | 1 |
|
'/(?:^|\n)( *?)(?! ).*?$/' | 1 |
|
"/^[ ]{1,$indent}/m" | 1 |
|
'{ (^.+?) # $1: Header text (?:[ ]+\{\#([-_:a-zA-Z0-9]+)\})? # $2: Id attribute [ ]*\n(=+|-+)[ ]*\n+ # $3: Header footer }mx' | 1 |
|
'{ ^(\#{1,6}) # $1 = string of #\'s [ ]* (.+?) # $2 = Header text [ ]* \#* # optional closing #\'s (not counted) (?:[ ]+\{\#([-_:a-zA-Z0-9]+)\})? # id attribute [ ]* \n+ }xm' | 1 |
|
' { ^ # Start of a line [ ]{0,' . $less_than_tab . '} # Allowed whitespace. [|] # Optional leading pipe (present) (.+) \n # $1: Header row (at least one pipe) [ ]{0,' . $less_than_tab . '} # Allowed whitespace. [|] ([ ]*[-:]+[-| :]*) \n # $2: Header underline ( # $3: Cells (?> [ ]* # Allowed whitespace. [|] .* \n # Row content. )* ) (?=\n|\Z) # Stop at final double newline. }xm' | 1 |
|
'/^ *[|]/m' | 1 |
|
'{\[\^(.+?)\]}' | 1 |
|
'/^ *-+: *$/' | 1 |
|
'/^ *:-+: *$/' | 1 |
|
'/^ *:-+ *$/' | 1 |
|
'{ (?>\A\n?|(?<=\n\n)) ' . $whole_list_re . ' }mx' | 1 |
|
'{ (?>\A\n?|\n\n+) # leading line ( # definition terms = $1 [ ]{0,' . $less_than_tab . '} # leading whitespace (?![:][ ]|[ ]) # negative lookahead for a definition # mark (colon) or more whitespace. (?> \S.* \n)+? # actual term (not whitespace). ) (?=\n?[ ]{0,3}:[ ]) # lookahead for following line feed # with a definition mark. }xm' | 1 |
|
'{ \n(\n+)? # leading line = $1 ( # marker space = $2 [ ]{0,' . $less_than_tab . '} # whitespace before colon [:][ ]+ # definition mark (colon) ) ((?s:.+?)) # definition text = $3 (?= \n+ # stop at next definition mark, (?: # next term or end of text [ ]{0,' . $less_than_tab . '} [:][ ] | <dt> | \z ) ) }xm' | 1 |
|
'{ (?:\n|\A) # 1: Opening marker ( ~{3,} # Marker: three tilde or more. ) [ ]* \n # Whitespace and newline following marker. # 2: Content ( (?> (?!\1 [ ]* \n) # Not a closing marker. .*\n+ )+ ) # Closing marker. \1 [ ]* \n }xm' | 1 |
|
'/^\n+/' | 1 |
|
'/^B\x1A[0-9]+B|^C\x1A[0-9]+C$/' | 1 |
|
'{ ^[ ]{0,' . $less_than_tab . '}\[\^(.+?)\][ ]?: # note_id = $1 [ ]* \n? # maybe *one* newline ( # text = $2 (no blank lines allowed) (?: .+ # actual text | \n # newlines but (?!\[\^.+?\]:\s)# negative lookahead for footnote marker. (?!\n+[ ]{0,3}\S)# ensure line is not blank and followed # by non-indented content )* ) }xm' | 1 |
|
'~\b(?:[\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|(?:[^[:punct:]\s]|/))~' | 1 |
|
'/([^\[]*+)\[(.*)\]/' | 1 |
|
'~[^-a-z0-9]+~i' | 1 |
|
'/[\W_]+/' | 1 |
|
'#' . preg_quote($search) . '[^0-9.]*+([0-9.][0-9.a-z]*)#i' | 1 |
|
'/(?:^\[)?[a-zA-Z0-9-:\]_]+\.?/' | 1 |
|
'~([^/#]+)~' | 1 |
|
'![^' . preg_quote($separator) . 'a-z0-9\s]+!' | 1 |
|
'![^' . preg_quote($separator) . '\pL\pN\s]+!u' | 1 |
|
'![' . preg_quote($separator) . '\s]+!u' | 1 |
|
'#^' . $trusted_host . '$#uD' | 1 |
|
'/(-?[0-9]++(?:-(?![0-9]++))?)(?:-?([0-9]++))?/' | 1 |
|
'/^([^\(]*+)\((.*)\)$/' | 1 |
|
'/^([0-9]+(?:\.[0-9]+)?)(' . $accepted . ')?$/Di' | 1 |
|
'~(?<!\n)\n(?!\n)~' | 1 |
|
'/^[^@]++@/' | 1 |
|
'/^' . $cards[$type]['prefix'] . '/' | 1 |
|
'/^\pL++$/uD' | 1 |
|
'/^[\pL\pN]++$/uD' | 1 |
|
'/^[-\pL\pN_]++$/uD' | 1 |
|
'/^[-a-z0-9_]++$/iD' | 1 |
|
'/^\pN++$/uD' | 1 |
|
'/^[+-]?[0-9]' . $digits . preg_quote($decimal) . '[0-9]{' . ((int) $places) . '}$/D' | 1 |
|
'/\s+/u' | 1 |
|
"% ((?:</?(?:a|em|span|strong|i|b)[^>]*>)|[^<>\s]) # must be proceeded by an approved inline opening or closing tag or a nontag/nonspace \s+ # the space to replace ([^<>\s]+ # must be flollowed by non-tag non-space characters \s* # optional white space! (</(a|em|span|strong|i|b)>\s*)* # optional closing inline tags with optional white space after each ((</(p|h[1-6]|li|dt|dd)>)|$)) # end with a closing p, h1-6, li or the end of the string %x" | 1 |
|
'~(</?' . $no_p . '[^>]*+>)</p>~i' | 1 |
|
'/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]+/S' | 1 |
|
'/^\s*+(?:\S++\s*+){1,' . $limit . '}/u' | 1 |
|
'/[^aeioudgkprt]hes$/' | 1 |
|
'/[^aeiou]ies$/' | 1 |
|
'/[sxz]$/' | 1 |
|
'/[^aeioudgkprt]h$/' | 1 |
|
'/[^aeiou]y$/' | 1 |
|
'/[\s_]+/' | 1 |
|
'/([a-z])([A-Z])/' | 1 |
|
'/[_-]+/' | 1 |
|
'/^(?:jpe?g|png|[gt]if|bmp|swf)$/' | 1 |
|
'/^.{0,' . $limit . '}\s/us' | 1 |
|
'~<p>(?=</?' . $no_p . '[^>]*+>)~i' | 1 |
|
'#(?<!:)//+#' | 1 |
|
'~\b(?<!href="|">)(?:ht|f)tps?://[^<\s]+(?:/|\b)~i' | 1 |
|
'~\b(?<!://|">)www(?:\.[a-z0-9][-a-z0-9]*+)+\.[a-z]{2,6}[^<\s]*\b~i' | 1 |
|
'~\b(?<!href="mailto:|58;)(?!\.)[-+_a-z0-9.]++(?<!\.)@(?![-.])[-a-z0-9.]+(?<!\.)\.[a-z]{2,6}\b(?!</a>)~i' | 1 |
|
'~^[ \t]+~m' | 1 |
|
'~[ \t]+$~m' | 1 |
|
'~^<' . $no_p . '[^>]*+>~im' | 1 |
|
'~</' . $no_p . '\s*+>$~im' | 1 |
|
'~\n{2,}~' | 1 |
|
'/[^\x00-\x7F]/S' | 1 |
|
'/^-?+(?=.*[0-9])[0-9]*+' . preg_quote($decimal) . '?+[0-9]*+$/D' | 1 |
|
'/[^\x00-\x7F]+/S' | 1 |
|
'/^\d+/' | 1 |
|
'/(?<=^|[\x0c\x09\x0b\x0a\x0d\x20])[^\x0c\x09\x0b\x0a\x0d\x20]/u' | 1 |
|
'/^\s*\* ?/m' | 1 |
|
'/^@(\S+)(?:\s*(.+))?$/' | 1 |
|
'/^[A-Z_-]+$/' | 1 |
|
'~\0+~' | 1 |
|
'~(?<!!)\[(.+?)\]\(([^#]\S*(?:\s*".+?")?)\)~' | 1 |
|
'~(?<!!)\[(.+?)\]\((?!\w++://)([^#]\S*(?:\s*+".+?")?)\)~' | 1 |
|
'~(?<!!)(\[.+?\]\()(?!\w++://)([^#]\S*(?:\s*+".+?")?\))~' | 1 |
|
'!\b' . preg_quote($match) . '\b!' | 1 |
|
'~\b(?<!href="mailto:|">|58;)(?!\.)[-+_a-z0-9.]++(?<!\.)@(?![-.])[-a-z0-9.]+(?<!\.)\.[a-z]{2,6}\b~ie' | 1 |
|
'/^#?([0-9a-f]{1,2}){3}$/iD' | 1 |
|
'#' . Route::REGEX_ESCAPE . '#' | 1 |
|
'/^#?([0-9a-f]){3}(([0-9a-f]){3})?$/iD' | 1 |
|
'/^#?(?:[0-9a-f]{1,2}+){3}$/iD' | 1 |
|
'/^#?[0-9a-f]{3}(?:[0-9a-f]{3})?$/iD' | 1 |
|
'/^#?+(?:[0-9a-f]{1,2}+){3}$/iD' | 1 |
|
'/^#?+[0-9a-f]{3}(?:[0-9a-f]{3})?\z/i' | 1 |
|
'/\A#?+[0-9a-f]{3}(?:[0-9a-f]{3})?\z/i' | 1 |
|
'/{{(\S+?)}}/m' | 1 |
|
'/(?<={{)[^\s{}]++(?=}})/' | 1 |
|
'~!\[(.+?)\]\((\S*(?:\s*".+?")?)\)~' | 1 |
|
'~!\[(.+?)\]\((?!\w++://)(\S*(?:\s*+".+?")?)\)~' | 1 |
|
'/[' . $charlist . ']++$/uD' | 1 |
|
'/^\pL$/u' | 1 |
|
'/(.*?)' . preg_quote($search, '/') . '/s' | 1 |
|
'/^[' . $charlist . ']+/u' | 1 |
|
'#(?:' . Route::REGEX_KEY . '|' . Route::REGEX_GROUP . ')#' | 1 |
|
'#//+#' | 1 |
|
'/' . $regex . '/us' | 1 |
|
'/([\w-]+)\s*(;.*q.*)?/' | 1 |
|
'#<img\s.*?(?:src\s*=\s*["\']?([^"\'<>\s]*)["\']?[^>]*)?>#is' | 1 |
|
'/^(.*?)' . preg_quote($search_lower, '/') . '/s' | 1 |
|
'/^(.?)(.*)$/us' | 1 |
|
'/(\w+\/\d\.\d) (\d{3})/' | 1 |
|
'/.{' . $split_length . '}|[^\x00]{1,' . $split_length . '}$/us' | 1 |
|
'/^<([\w:$]*)\b/' | 2 |
|
'~\b(\;\s*+)?q\s*+=\s*+([.0-9]+)~' | 2 |
|
'#[-[\].:\\\\^/]#' | 2 |
|
'/\s+/' | 2 |
|
'~^(?:[-a-z0-9+.]++://[^/]++/?)?([^?#]++)?(\?[^#]*+)?(#.*)?~' | 2 |
|
'/{{([^\s{}]++)}}/' | 2 |
|
'/^#?+[0-9a-f]{3}(?:[0-9a-f]{3})?$/iD' | 2 |
|
'~(!\[.+?\]\()(?!\w++://)(\S*(?:\s*+".+?")?\))~' | 2 |
|
'#[-\[\]:\\\\^/]#' | 2 |
|
'(' . implode('|', $badwords) . ')' | 2 |
|
' { \s* # Eat whitespace before the `markdown` attribute markdown \s*=\s* (?> (["\']) # $1: quote delimiter (.*?) # $2: attribute value \1 # matching delimiter | ([^\s>]*) # $3: unquoted attribute value ) () # $4: make $3 always defined (avoid warnings) }xs' | 2 |
|
'/\n{2,}/' | 2 |
|
'/\D+/' | 2 |
|
'~^ # scheme [-a-z0-9+.]++:// # username:password (optional) (?: [-a-z0-9$_.+!*\'(),;?&=%]++ # username (?::[-a-z0-9$_.+!*\'(),;?&=%]++)? # password (optional) @ )? (?: # ip address \d{1,3}+(?:\.\d{1,3}+){3}+ | # or # hostname (captured) ( (?!-)[-a-z0-9]{1,63}+(?<!-) (?:\.(?!-)[-a-z0-9]{1,63}+(?<!-)){0,126}+ ) ) # port (optional) (?::\d{1,5}+)? # path (optional) (?:/.*)? $~iDx' | 2 |
|
'{^- }' | 2 |
|
'{F\x1Afn:(.*?)\x1A:}' | 2 |
|
'/(\w[^\s:]*):[ ]*([^\r\n]*(?:\r\n[ \t][^\r\n]*)*)/' | 2 |
|
"/\n{2,}\\z/" | 2 |
|
'/^[^' . $mask . ']+/u' | 2 |
|
'~\b(?<!href="mailto:|">|58;)(?!\.)[-+_a-z0-9.]++(?<!\.)@(?![-.])[-a-z0-9.]+(?<!\.)\.[a-z]{2,6}\b~i' | 3 |
|
'/./us' | 3 |
|
'/[|] *$/m' | 3 |
|
'/\A\n+|\n+\z/' | 3 |
|
'~^[-a-z0-9+.]++://[^/]++/?~' | 4 |
|