Author: szabgab Date: 2009-07-27 17:15:01 +0200 (Mon, 27 Jul 2009) New Revision: 27753
Modified: docs/Perl6/Spec/S05-regex.pod Log: add also X<< >> tags to Predefined Subrules Modified: docs/Perl6/Spec/S05-regex.pod =================================================================== --- docs/Perl6/Spec/S05-regex.pod 2009-07-27 15:00:43 UTC (rev 27752) +++ docs/Perl6/Spec/S05-regex.pod 2009-07-27 15:15:01 UTC (rev 27753) @@ -1557,62 +1557,62 @@ =over =item * ident -X<ident> +X<ident>X<< <ident> >> Match an identifier. =item * upper -X<upper> +X<upper>X<< <upper> >> Match a single uppercase character. =item * lower -X<lower> +X<lower>X<< <lower> >> Match a single lowercase character. =item * alpha -X<alpha> +X<alpha>X<< <alpha> >> Match a single alphabetic character. =item * digit -X<digit> +X<digit>X<< <digit> >> Match a single digit. =item * xdigit -X<xdigit> +X<xdigit>X<< <xdigit> >> Match a single hexadecimal digit. =item * print -X<print> +X<print>X<< <print> >> Match a single printable character. =item * graph -X<graph> +X<graph>X<< <graph> >> Match a single "graphical" character. =item * cntrl -X<cntrl> +X<cntrl>X<< <cntrl> >> Match a single "control" character. A control character is usually one that doesn't produce output as such but instead controls the terminal somehow: for example newline and backspace are control characters. All characters with ord() less than 32 are usually classified as control characters (assuming ASCII, the ISO Latin character sets, and Unicode), as is the character with the ord() value of 127 (DEL ). =item * punct -X<punct> +X<punct>X<< <punct> >> Match a single punctuation character. =item * alnum -X<alnum> +X<alnum>X<< <alnum> >> Match a single alphanumeric character. This is equivalent to <+alpha +digit> . =item * wb -X<wb> +X<wb>X<< <wb> >> Returns a zero-width match that is true at word boundaries. A word boundary is a spot with a "\w" on one side and a "\W" on the other @@ -1620,49 +1620,49 @@ as matching "\W". =item * ww -X<ww> +X<ww>X<< <ww> >> Matches between two word characters (zero-width match). =item * ws -X<ws> +X<ws>X<< <ws> >> Matches required whitespace between two word characters, optional whitespace otherwise. This is roughly equivalent to C<< <!ww> \s* >> (C<ws> isn't required to use the C<ww> subrule). =item * space -X<space> +X<space>X<< <space> >> Match a single whitespace character (same as C< \s > ). =item * blank -X<blank> +X<blank>X<< <blank> >> Match a single "blank" character -- in most locales, this corresponds to space and tab. =item * before C<pattern> -S<before> +X<before>X<< <before> >> Perform lookahead -- i.e., check if we're at a position where C<pattern> matches. Returns a zero-width C<Match> object on success. =item * after C<pattern> -X<after> +X<after>X<< <after> >> Perform lookbehind -- i.e., check if the string before the current position matches <pattern> (anchored at the end). Returns a zero-width C<Match> object on success. =item * <?> -X<?> +X<?>X<< <?> >> Match a null string, viz., always returns true =item * <!> -X<!> +X<!>X<< <!> >> Inverse of <?>, viz., always returns false.