blob: 291e96fa5f4d73fd752699e1f0d6a71f40f197c5 [file] [log] [blame]
Fred Drake295da241998-08-10 19:42:37 +00001\section{\module{regex} ---
Fred Drakeef5781b2000-09-25 17:23:04 +00002 Regular expression operations}
Fred Drakeb91e9341998-07-23 17:59:49 +00003\declaremodule{builtin}{regex}
4
Fred Drakeef5781b2000-09-25 17:23:04 +00005\modulesynopsis{Regular expression search and match operations.
6 \strong{Obsolete!}}
Fred Drakeb91e9341998-07-23 17:59:49 +00007
Fred Drake054f8fd1998-01-12 18:28:20 +00008
Guido van Rossum5fdeeea1994-01-02 01:22:07 +00009This module provides regular expression matching operations similar to
Guido van Rossum28f9a681997-12-09 19:45:47 +000010those found in Emacs.
11
12\strong{Obsolescence note:}
13This module is obsolete as of Python version 1.5; it is still being
14maintained because much existing code still uses it. All new code in
Fred Drake054f8fd1998-01-12 18:28:20 +000015need of regular expressions should use the new
16\code{re}\refstmodindex{re} module, which supports the more powerful
17and regular Perl-style regular expressions. Existing code should be
18converted. The standard library module
19\code{reconvert}\refstmodindex{reconvert} helps in converting
20\code{regex} style regular expressions to \code{re}\refstmodindex{re}
Fred Drake9da38811998-04-09 14:06:33 +000021style regular expressions. (For more conversion help, see Andrew
22Kuchling's\index{Kuchling, Andrew} ``\module{regex-to-re} HOWTO'' at
23\url{http://www.python.org/doc/howto/regex-to-re/}.)
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000024
Guido van Rossum6240b0b1996-10-24 22:49:13 +000025By default the patterns are Emacs-style regular expressions
26(with one exception). There is
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000027a way to change the syntax to match that of several well-known
Guido van Rossumfe4254e1995-08-11 00:31:57 +000028\UNIX{} utilities. The exception is that Emacs' \samp{\e s}
29pattern is not supported, since the original implementation references
30the Emacs syntax tables.
Guido van Rossum5fdeeea1994-01-02 01:22:07 +000031
32This module is 8-bit clean: both patterns and strings may contain null
33bytes and characters whose high bit is set.
34
Guido van Rossum326c0bc1994-01-03 00:00:31 +000035\strong{Please note:} There is a little-known fact about Python string
36literals which means that you don't usually have to worry about
37doubling backslashes, even though they are used to escape special
38characters in string literals as well as in regular expressions. This
39is because Python doesn't remove backslashes from string literals if
40they are followed by an unrecognized escape character.
41\emph{However}, if you want to include a literal \dfn{backslash} in a
42regular expression represented as a string literal, you have to
Guido van Rossum1f8cee21997-03-14 04:10:13 +000043\emph{quadruple} it or enclose it in a singleton character class.
Fred Drakefee6abe1998-12-10 19:57:52 +000044E.g.\ to extract \LaTeX\ \samp{\e section\{\textrm{\ldots}\}} headers
45from a document, you can use this pattern:
Guido van Rossumeb0f0661997-12-30 20:38:16 +000046\code{'[\e ]section\{\e (.*\e )\}'}. \emph{Another exception:}
Guido van Rossum1a535601996-06-26 19:43:22 +000047the escape sequece \samp{\e b} is significant in string literals
48(where it means the ASCII bell character) as well as in Emacs regular
49expressions (where it stands for a word boundary), so in order to
50search for a word boundary, you should use the pattern \code{'\e \e b'}.
51Similarly, a backslash followed by a digit 0-7 should be doubled to
52avoid interpretation as an octal escape.
53
54\subsection{Regular Expressions}
55
56A regular expression (or RE) specifies a set of strings that matches
57it; the functions in this module let you check if a particular string
Guido van Rossum6240b0b1996-10-24 22:49:13 +000058matches a given regular expression (or if a given regular expression
59matches a particular string, which comes down to the same thing).
Guido van Rossum1a535601996-06-26 19:43:22 +000060
61Regular expressions can be concatenated to form new regular
62expressions; if \emph{A} and \emph{B} are both regular expressions,
63then \emph{AB} is also an regular expression. If a string \emph{p}
64matches A and another string \emph{q} matches B, the string \emph{pq}
65will match AB. Thus, complex expressions can easily be constructed
66from simpler ones like the primitives described here. For details of
67the theory and implementation of regular expressions, consult almost
68any textbook about compiler construction.
69
70% XXX The reference could be made more specific, say to
71% "Compilers: Principles, Techniques and Tools", by Alfred V. Aho,
72% Ravi Sethi, and Jeffrey D. Ullman, or some FA text.
73
Guido van Rossum6240b0b1996-10-24 22:49:13 +000074A brief explanation of the format of regular expressions follows.
Guido van Rossum1a535601996-06-26 19:43:22 +000075
76Regular expressions can contain both special and ordinary characters.
77Ordinary characters, like '\code{A}', '\code{a}', or '\code{0}', are
78the simplest regular expressions; they simply match themselves. You
79can concatenate ordinary characters, so '\code{last}' matches the
Guido van Rossum6240b0b1996-10-24 22:49:13 +000080characters 'last'. (In the rest of this section, we'll write RE's in
81\code{this special font}, usually without quotes, and strings to be
82matched 'in single quotes'.)
Guido van Rossum1a535601996-06-26 19:43:22 +000083
84Special characters either stand for classes of ordinary characters, or
85affect how the regular expressions around them are interpreted.
86
87The special characters are:
88\begin{itemize}
Fred Drake4b3f0311996-12-13 22:04:31 +000089\item[\code{.}] (Dot.) Matches any character except a newline.
90\item[\code{\^}] (Caret.) Matches the start of the string.
91\item[\code{\$}] Matches the end of the string.
Guido van Rossum1a535601996-06-26 19:43:22 +000092\code{foo} matches both 'foo' and 'foobar', while the regular
Fred Drake4b3f0311996-12-13 22:04:31 +000093expression '\code{foo\$}' matches only 'foo'.
Guido van Rossum1a535601996-06-26 19:43:22 +000094\item[\code{*}] Causes the resulting RE to
95match 0 or more repetitions of the preceding RE. \code{ab*} will
96match 'a', 'ab', or 'a' followed by any number of 'b's.
97\item[\code{+}] Causes the
98resulting RE to match 1 or more repetitions of the preceding RE.
99\code{ab+} will match 'a' followed by any non-zero number of 'b's; it
100will not match just 'a'.
101\item[\code{?}] Causes the resulting RE to
102match 0 or 1 repetitions of the preceding RE. \code{ab?} will
103match either 'a' or 'ab'.
104
105\item[\code{\e}] Either escapes special characters (permitting you to match
106characters like '*?+\&\$'), or signals a special sequence; special
107sequences are discussed below. Remember that Python also uses the
108backslash as an escape sequence in string literals; if the escape
109sequence isn't recognized by Python's parser, the backslash and
110subsequent character are included in the resulting string. However,
111if Python would recognize the resulting sequence, the backslash should
112be repeated twice.
113
114\item[\code{[]}] Used to indicate a set of characters. Characters can
115be listed individually, or a range is indicated by giving two
116characters and separating them by a '-'. Special characters are
117not active inside sets. For example, \code{[akm\$]}
118will match any of the characters 'a', 'k', 'm', or '\$'; \code{[a-z]} will
119match any lowercase letter.
120
121If you want to include a \code{]} inside a
122set, it must be the first character of the set; to include a \code{-},
123place it as the first or last character.
124
125Characters \emph{not} within a range can be matched by including a
126\code{\^} as the first character of the set; \code{\^} elsewhere will
127simply match the '\code{\^}' character.
128\end{itemize}
129
130The special sequences consist of '\code{\e}' and a character
131from the list below. If the ordinary character is not on the list,
132then the resulting RE will match the second character. For example,
133\code{\e\$} matches the character '\$'. Ones where the backslash
Guido van Rossumeb0f0661997-12-30 20:38:16 +0000134should be doubled in string literals are indicated.
Guido van Rossum1a535601996-06-26 19:43:22 +0000135
136\begin{itemize}
137\item[\code{\e|}]\code{A\e|B}, where A and B can be arbitrary REs,
Guido van Rossum6240b0b1996-10-24 22:49:13 +0000138creates a regular expression that will match either A or B. This can
139be used inside groups (see below) as well.
Guido van Rossum1a535601996-06-26 19:43:22 +0000140%
Fred Drake4b3f0311996-12-13 22:04:31 +0000141\item[\code{\e( \e)}] Indicates the start and end of a group; the
Guido van Rossum1a535601996-06-26 19:43:22 +0000142contents of a group can be matched later in the string with the
Fred Drake4b3f0311996-12-13 22:04:31 +0000143\code{\e [1-9]} special sequence, described next.
Fred Drake75bfb0f1998-02-19 06:32:06 +0000144\end{itemize}
145
146\begin{fulllineitems}
147\item[\code{\e \e 1, ... \e \e 7, \e 8, \e 9}]
Fred Drake4b3f0311996-12-13 22:04:31 +0000148Matches the contents of the group of the same
Guido van Rossum1a535601996-06-26 19:43:22 +0000149number. For example, \code{\e (.+\e ) \e \e 1} matches 'the the' or
150'55 55', but not 'the end' (note the space after the group). This
151special sequence can only be used to match one of the first 9 groups;
152groups with higher numbers can be matched using the \code{\e v}
Guido van Rossum6240b0b1996-10-24 22:49:13 +0000153sequence. (\code{\e 8} and \code{\e 9} don't need a double backslash
Guido van Rossum38e0df31998-02-11 22:55:55 +0000154because they are not octal digits.)
Fred Drake75bfb0f1998-02-19 06:32:06 +0000155\end{fulllineitems}
156
157\begin{itemize}
Fred Drake4b3f0311996-12-13 22:04:31 +0000158\item[\code{\e \e b}] Matches the empty string, but only at the
Guido van Rossum1a535601996-06-26 19:43:22 +0000159beginning or end of a word. A word is defined as a sequence of
160alphanumeric characters, so the end of a word is indicated by
Fred Drake4b3f0311996-12-13 22:04:31 +0000161whitespace or a non-alphanumeric character.
Guido van Rossum1a535601996-06-26 19:43:22 +0000162%
Fred Drake4b3f0311996-12-13 22:04:31 +0000163\item[\code{\e B}] Matches the empty string, but when it is \emph{not} at the
164beginning or end of a word.
Guido van Rossum1a535601996-06-26 19:43:22 +0000165%
Fred Drake4b3f0311996-12-13 22:04:31 +0000166\item[\code{\e v}] Must be followed by a two digit decimal number, and
Fred Drake054f8fd1998-01-12 18:28:20 +0000167matches the contents of the group of the same number. The group
168number must be between 1 and 99, inclusive.
Guido van Rossum1a535601996-06-26 19:43:22 +0000169%
170\item[\code{\e w}]Matches any alphanumeric character; this is
171equivalent to the set \code{[a-zA-Z0-9]}.
172%
Fred Drake4b3f0311996-12-13 22:04:31 +0000173\item[\code{\e W}] Matches any non-alphanumeric character; this is
174equivalent to the set \code{[\^a-zA-Z0-9]}.
175\item[\code{\e <}] Matches the empty string, but only at the beginning of a
Guido van Rossum1a535601996-06-26 19:43:22 +0000176word. A word is defined as a sequence of alphanumeric characters, so
177the end of a word is indicated by whitespace or a non-alphanumeric
Fred Drake4b3f0311996-12-13 22:04:31 +0000178character.
179\item[\code{\e >}] Matches the empty string, but only at the end of a
180word.
Guido van Rossum1a535601996-06-26 19:43:22 +0000181
Fred Drake4b3f0311996-12-13 22:04:31 +0000182\item[\code{\e \e \e \e}] Matches a literal backslash.
Guido van Rossum6240b0b1996-10-24 22:49:13 +0000183
Guido van Rossum1a535601996-06-26 19:43:22 +0000184% In Emacs, the following two are start of buffer/end of buffer. In
185% Python they seem to be synonyms for ^$.
Fred Drake4b3f0311996-12-13 22:04:31 +0000186\item[\code{\e `}] Like \code{\^}, this only matches at the start of the
187string.
Fred Drake054f8fd1998-01-12 18:28:20 +0000188\item[\code{\e \e '}] Like \code{\$}, this only matches at the end of
189the string.
Guido van Rossum1a535601996-06-26 19:43:22 +0000190% end of buffer
191\end{itemize}
192
193\subsection{Module Contents}
Guido van Rossum38e0df31998-02-11 22:55:55 +0000194\nodename{Contents of Module regex}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000195
196The module defines these functions, and an exception:
197
Guido van Rossum326c0bc1994-01-03 00:00:31 +0000198
Fred Drakecce10901998-03-17 06:33:25 +0000199\begin{funcdesc}{match}{pattern, string}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000200 Return how many characters at the beginning of \var{string} match
201 the regular expression \var{pattern}. Return \code{-1} if the
202 string does not match the pattern (this is different from a
203 zero-length match!).
204\end{funcdesc}
205
Fred Drakecce10901998-03-17 06:33:25 +0000206\begin{funcdesc}{search}{pattern, string}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000207 Return the first position in \var{string} that matches the regular
Guido van Rossum6240b0b1996-10-24 22:49:13 +0000208 expression \var{pattern}. Return \code{-1} if no position in the string
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000209 matches the pattern (this is different from a zero-length match
210 anywhere!).
211\end{funcdesc}
212
Fred Drakecce10901998-03-17 06:33:25 +0000213\begin{funcdesc}{compile}{pattern\optional{, translate}}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000214 Compile a regular expression pattern into a regular expression
Fred Drake054f8fd1998-01-12 18:28:20 +0000215 object, which can be used for matching using its \code{match()} and
216 \code{search()} methods, described below. The optional argument
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000217 \var{translate}, if present, must be a 256-character string
218 indicating how characters (both of the pattern and of the strings to
Fred Drake054f8fd1998-01-12 18:28:20 +0000219 be matched) are translated before comparing them; the \var{i}-th
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000220 element of the string gives the translation for the character with
Fred Drake054f8fd1998-01-12 18:28:20 +0000221 \ASCII{} code \var{i}. This can be used to implement
Guido van Rossum470be141995-03-17 16:07:09 +0000222 case-insensitive matching; see the \code{casefold} data item below.
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000223
224 The sequence
225
Fred Drake19479911998-02-13 06:58:54 +0000226\begin{verbatim}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000227prog = regex.compile(pat)
228result = prog.match(str)
Fred Drake19479911998-02-13 06:58:54 +0000229\end{verbatim}
Guido van Rossume47da0a1997-07-17 16:34:52 +0000230%
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000231is equivalent to
232
Fred Drake19479911998-02-13 06:58:54 +0000233\begin{verbatim}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000234result = regex.match(pat, str)
Fred Drake19479911998-02-13 06:58:54 +0000235\end{verbatim}
Fred Drake054f8fd1998-01-12 18:28:20 +0000236
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000237but the version using \code{compile()} is more efficient when multiple
238regular expressions are used concurrently in a single program. (The
239compiled version of the last pattern passed to \code{regex.match()} or
240\code{regex.search()} is cached, so programs that use only a single
241regular expression at a time needn't worry about compiling regular
242expressions.)
243\end{funcdesc}
244
245\begin{funcdesc}{set_syntax}{flags}
Fred Drake054f8fd1998-01-12 18:28:20 +0000246 Set the syntax to be used by future calls to \code{compile()},
247 \code{match()} and \code{search()}. (Already compiled expression
248 objects are not affected.) The argument is an integer which is the
249 OR of several flag bits. The return value is the previous value of
250 the syntax flags. Names for the flags are defined in the standard
251 module \code{regex_syntax}\refstmodindex{regex_syntax}; read the
252 file \file{regex_syntax.py} for more information.
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000253\end{funcdesc}
254
Barry Warsawcd77df61997-02-18 18:54:30 +0000255\begin{funcdesc}{get_syntax}{}
256 Returns the current value of the syntax flags as an integer.
257\end{funcdesc}
258
Fred Drakecce10901998-03-17 06:33:25 +0000259\begin{funcdesc}{symcomp}{pattern\optional{, translate}}
Fred Drake054f8fd1998-01-12 18:28:20 +0000260This is like \code{compile()}, but supports symbolic group names: if a
Guido van Rossum6c4f0031995-03-07 10:14:09 +0000261parenthesis-enclosed group begins with a group name in angular
Guido van Rossum326c0bc1994-01-03 00:00:31 +0000262brackets, e.g. \code{'\e(<id>[a-z][a-z0-9]*\e)'}, the group can
Fred Drake054f8fd1998-01-12 18:28:20 +0000263be referenced by its name in arguments to the \code{group()} method of
Guido van Rossum326c0bc1994-01-03 00:00:31 +0000264the resulting compiled regular expression object, like this:
Guido van Rossum7defee71995-02-27 17:52:35 +0000265\code{p.group('id')}. Group names may contain alphanumeric characters
266and \code{'_'} only.
Guido van Rossum326c0bc1994-01-03 00:00:31 +0000267\end{funcdesc}
268
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000269\begin{excdesc}{error}
270 Exception raised when a string passed to one of the functions here
271 is not a valid regular expression (e.g., unmatched parentheses) or
272 when some other error occurs during compilation or matching. (It is
273 never an error if a string contains no match for a pattern.)
274\end{excdesc}
275
276\begin{datadesc}{casefold}
Fred Drake054f8fd1998-01-12 18:28:20 +0000277A string suitable to pass as the \var{translate} argument to
278\code{compile()} to map all upper case characters to their lowercase
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000279equivalents.
280\end{datadesc}
281
282\noindent
283Compiled regular expression objects support these methods:
284
Fred Drake19479911998-02-13 06:58:54 +0000285\setindexsubitem{(regex method)}
Fred Drakecce10901998-03-17 06:33:25 +0000286\begin{funcdesc}{match}{string\optional{, pos}}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000287 Return how many characters at the beginning of \var{string} match
288 the compiled regular expression. Return \code{-1} if the string
289 does not match the pattern (this is different from a zero-length
290 match!).
291
Fred Drake054f8fd1998-01-12 18:28:20 +0000292 The optional second parameter, \var{pos}, gives an index in the string
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000293 where the search is to start; it defaults to \code{0}. This is not
294 completely equivalent to slicing the string; the \code{'\^'} pattern
Andrew M. Kuchling65b78631998-06-22 15:02:42 +0000295 character matches at the real beginning of the string and at positions
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000296 just after a newline, not necessarily at the index where the search
297 is to start.
298\end{funcdesc}
299
Fred Drakecce10901998-03-17 06:33:25 +0000300\begin{funcdesc}{search}{string\optional{, pos}}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000301 Return the first position in \var{string} that matches the regular
302 expression \code{pattern}. Return \code{-1} if no position in the
303 string matches the pattern (this is different from a zero-length
304 match anywhere!).
305
306 The optional second parameter has the same meaning as for the
Fred Drake054f8fd1998-01-12 18:28:20 +0000307 \code{match()} method.
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000308\end{funcdesc}
309
Fred Drakecce10901998-03-17 06:33:25 +0000310\begin{funcdesc}{group}{index, index, ...}
Fred Drake054f8fd1998-01-12 18:28:20 +0000311This method is only valid when the last call to the \code{match()}
312or \code{search()} method found a match. It returns one or more
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000313groups of the match. If there is a single \var{index} argument,
314the result is a single string; if there are multiple arguments, the
315result is a tuple with one item per argument. If the \var{index} is
316zero, the corresponding return value is the entire matching string; if
Guido van Rossum326c0bc1994-01-03 00:00:31 +0000317it is in the inclusive range [1..99], it is the string matching the
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000318the corresponding parenthesized group (using the default syntax,
Fred Drake875c8071998-01-02 02:50:13 +0000319groups are parenthesized using \code{{\e}(} and \code{{\e})}). If no
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000320such group exists, the corresponding result is \code{None}.
Guido van Rossum326c0bc1994-01-03 00:00:31 +0000321
Fred Drake054f8fd1998-01-12 18:28:20 +0000322If the regular expression was compiled by \code{symcomp()} instead of
323\code{compile()}, the \var{index} arguments may also be strings
Guido van Rossum326c0bc1994-01-03 00:00:31 +0000324identifying groups by their group name.
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000325\end{funcdesc}
326
327\noindent
328Compiled regular expressions support these data attributes:
329
Fred Drake19479911998-02-13 06:58:54 +0000330\setindexsubitem{(regex attribute)}
Guido van Rossum326c0bc1994-01-03 00:00:31 +0000331
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000332\begin{datadesc}{regs}
Fred Drake054f8fd1998-01-12 18:28:20 +0000333When the last call to the \code{match()} or \code{search()} method found a
334match, this is a tuple of pairs of indexes corresponding to the
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000335beginning and end of all parenthesized groups in the pattern. Indices
Fred Drake054f8fd1998-01-12 18:28:20 +0000336are relative to the string argument passed to \code{match()} or
337\code{search()}. The 0-th tuple gives the beginning and end or the
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000338whole pattern. When the last match or search failed, this is
339\code{None}.
340\end{datadesc}
341
342\begin{datadesc}{last}
Fred Drake054f8fd1998-01-12 18:28:20 +0000343When the last call to the \code{match()} or \code{search()} method found a
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000344match, this is the string argument passed to that method. When the
345last match or search failed, this is \code{None}.
346\end{datadesc}
347
348\begin{datadesc}{translate}
349This is the value of the \var{translate} argument to
Fred Drake054f8fd1998-01-12 18:28:20 +0000350\code{regex.compile()} that created this regular expression object. If
351the \var{translate} argument was omitted in the \code{regex.compile()}
Guido van Rossum5fdeeea1994-01-02 01:22:07 +0000352call, this is \code{None}.
353\end{datadesc}
Guido van Rossum326c0bc1994-01-03 00:00:31 +0000354
355\begin{datadesc}{givenpat}
Fred Drake054f8fd1998-01-12 18:28:20 +0000356The regular expression pattern as passed to \code{compile()} or
357\code{symcomp()}.
Guido van Rossum326c0bc1994-01-03 00:00:31 +0000358\end{datadesc}
359
360\begin{datadesc}{realpat}
361The regular expression after stripping the group names for regular
Fred Drake054f8fd1998-01-12 18:28:20 +0000362expressions compiled with \code{symcomp()}. Same as \code{givenpat}
Guido van Rossum326c0bc1994-01-03 00:00:31 +0000363otherwise.
364\end{datadesc}
365
366\begin{datadesc}{groupindex}
367A dictionary giving the mapping from symbolic group names to numerical
Fred Drake054f8fd1998-01-12 18:28:20 +0000368group indexes for regular expressions compiled with \code{symcomp()}.
Guido van Rossum326c0bc1994-01-03 00:00:31 +0000369\code{None} otherwise.
370\end{datadesc}