Skip to content

Commit

Permalink
Revises rephrasing of \n matching magic.
Browse files Browse the repository at this point in the history
@fluca1978's contribution is OK. Some reformatting, too. Closes #1709.
  • Loading branch information
JJ committed Nov 21, 2018
1 parent 6ab45c5 commit 1aff045
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/Language/regexes.pod6
Expand Up @@ -115,15 +115,16 @@ written with an upper-case letter, C<\W>.
=item X<C<\n> and C<\N>|regex,\n;regex,\N>
C<\n> matches a single, logical newline character.C<\N> matches a single
C<\n> matches a single, logical newline character. C<\N> matches a single
character that's not a logical newline.
What is considered as a single newline character is defined via the compile
time variable L«C<$?NL>|/language/variables#index-entry-$?NL», and the
L<newline pragma|/language/pragmas>.
Therefore, C<\n> is supposed to be able to match either a Unix-like
newline C<"\n">, a Microsoft Windows style one C<"\r\n">, or one in the Mac style C<"\r">.
Therefore, C<\n> is supposed to be able to match either a Unix-like newline
C<"\n">, a Microsoft Windows style one C<"\r\n">, or one in the Mac style
C<"\r">.
=item X<C<\t> and C<\T>|regex,\t;regex,\T>
Expand Down

0 comments on commit 1aff045

Please sign in to comment.