RegexCheatSheet: Fix format of the hash.

master
Jag Talon 2013-12-24 17:07:39 -05:00
parent be76b49ec8
commit 945bde9baf
1 changed files with 8 additions and 8 deletions

View File

@ -89,7 +89,7 @@ our %categories = (
# Symbols and their explanation/description
our %syntax_map = (
'.' => 'Any character except newline (\n)',
'.' => 'Any character except newline (\n)',
'(a|b)' => 'a or b',
'(...)' => 'Group',
'(?:...)' => 'Passive (non-capturing) group',
@ -98,9 +98,9 @@ our %syntax_map = (
'[a-q]' => 'Single character range (a or b ... or q)',
'[A-Z]' => 'Single character range (A or B ... or Z)',
'[0-9]' => 'Single digit from 0 to 9',
'^' => "Start of string or line",
'^' => "Start of string or line",
'\A' => "Start of string",
'$' => "End of string or line",
'$' => "End of string or line",
'\Z' => "End of string",
'\b' => 'Word boundary',
'\B' => 'Not word boundary',
@ -120,7 +120,7 @@ our %syntax_map = (
'[:alpha:]' => 'All letters [A-Za-z]',
'[:alnum:]' => 'Digits and letters [A-Za-z0-9]',
'[:digit:]' => 'Digits [0-9]',
'[:xdigit:]' => 'Hexadecimal digits [0-9a-f]',
'[:xdigit:]'=> 'Hexadecimal digits [0-9a-f]',
# '[:punct:]' => 'Punctuation [\]\[!"#$%&'."'".'()*+,./:;<=>?@\^_`{|}~-]',
'[:punct:]' => 'Punctuation',
'[:blank:]' => 'Space and tab [ \t]',
@ -132,14 +132,14 @@ our %syntax_map = (
'?=' => 'Lookahead assertion',
'?!' => 'Negative lookahead',
'?<=' => 'Lookbehind assertion',
'?!= or ?<!' => 'Negative lookbehind',
'?!= or ?<!'=> 'Negative lookbehind',
'?>' => 'Once-only Subexpression',
'?()' => 'Condition [if then]',
'?()|' => 'Condition [if then else]',
'?#' => 'Comment',
'*' => '0 or more',
'+' => '1 or more',
'?' => '0 or 1 (optional)',
'*' => '0 or more',
'+' => '1 or more',
'?' => '0 or 1 (optional)',
'{3}' => 'Exactly 3',
'{3,}' => '3 or more',
'{2,5}' => '2, 3, 4 or 5',