Skip to content

Commit

Permalink
[re.grammar] Don't use monospace for ordinary text.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eelis committed Jul 7, 2020
1 parent e352fda commit c33820b
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions source/regex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3692,19 +3692,14 @@
\tcode{upper}, \tcode{xdigit}, \tcode{d}, \tcode{s}, \tcode{w}.
In addition the following expressions shall be equivalent:

\begin{codeblock}
\d and [[:digit:]]

\D and [^[:digit:]]

\s and [[:space:]]

\S and [^[:space:]]

\w and [_[:alnum:]]

\W and [^_[:alnum:]]
\end{codeblock}
\begin{tabular}{@{\hspace{1em}}l@{\quad{}and\quad}l}
\tcode{\textbackslash d} & \tcode{[[:digit:]]} \\[3mm]
\tcode{\textbackslash D} & \tcode{[}\tcode{\^}\tcode{[:digit:]]} \\[3mm]
\tcode{\textbackslash s} & \tcode{[[:space:]]} \\[3mm]
\tcode{\textbackslash S} & \tcode{[}\tcode{\^}\tcode{[:space:]]} \\[3mm]
\tcode{\textbackslash w} & \tcode{[_[:alnum:]]} \\[3mm]
\tcode{\textbackslash W} & \tcode{[}\tcode{\^}\tcode{_[:alnum:]]} \\
\end{tabular}

\pnum
\indexlibrary{regular expression traits!\idxcode{lookup_collatename}}%
Expand Down

0 comments on commit c33820b

Please sign in to comment.