Lines Matching refs:expressions
24 Regular expressions use the backslash character (``'\'``) to indicate
42 :ref:`compiled regular expressions <re-objects>`. The functions are shortcuts
63 Regular expressions can be concatenated to form new regular expressions; if *A*
64 and *B* are both regular expressions, then *AB* is also a regular expression.
68 references. Thus, complex expressions can easily be constructed from simpler
69 primitive expressions like the ones described here. For details of the theory
70 and implementation of regular expressions, consult the Friedl book [Frie09]_,
73 A brief explanation of the format of regular expressions follows. For further
76 Regular expressions can contain both special and ordinary characters. Most
78 expressions; they simply match themselves. You can concatenate ordinary
85 how the regular expressions around them are interpreted.
96 .. index:: single: . (dot); in regular expressions
103 .. index:: single: ^ (caret); in regular expressions
109 .. index:: single: $ (dollar); in regular expressions
120 .. index:: single: * (asterisk); in regular expressions
127 .. index:: single: + (plus); in regular expressions
134 .. index:: single: ? (question mark); in regular expressions
141 single: *?; in regular expressions
142 single: +?; in regular expressions
143 single: ??; in regular expressions
155 single: {} (curly brackets); in regular expressions
178 .. index:: single: \ (backslash); in regular expressions
191 raw strings for all but the simplest expressions.
194 single: [] (square brackets); in regular expressions
202 .. index:: single: - (minus); in regular expressions
215 .. index:: single: \ (backslash); in regular expressions
221 .. index:: single: ^ (caret); in regular expressions
234 .. .. index:: single: --; in regular expressions
235 .. .. index:: single: &&; in regular expressions
236 .. .. index:: single: ~~; in regular expressions
237 .. .. index:: single: ||; in regular expressions
253 .. index:: single: | (vertical bar); in regular expressions
267 single: () (parentheses); in regular expressions
276 .. index:: single: (?; in regular expressions
299 .. index:: single: (?:; in regular expressions
333 .. index:: single: (?P<; in regular expressions
360 .. index:: single: (?P=; in regular expressions
366 .. index:: single: (?#; in regular expressions
371 .. index:: single: (?=; in regular expressions
378 .. index:: single: (?!; in regular expressions
385 .. index:: single: (?<=; in regular expressions
412 .. index:: single: (?<!; in regular expressions
435 .. index:: single: \ (backslash); in regular expressions
447 .. index:: single: \A; in regular expressions
452 .. index:: single: \b; in regular expressions
468 .. index:: single: \B; in regular expressions
479 .. index:: single: \d; in regular expressions
491 .. index:: single: \D; in regular expressions
498 .. index:: single: \s; in regular expressions
512 .. index:: single: \S; in regular expressions
519 .. index:: single: \w; in regular expressions
534 .. index:: single: \W; in regular expressions
543 .. index:: single: \Z; in regular expressions
549 single: \a; in regular expressions
550 single: \b; in regular expressions
551 single: \f; in regular expressions
552 single: \n; in regular expressions
553 single: \N; in regular expressions
554 single: \r; in regular expressions
555 single: \t; in regular expressions
556 single: \u; in regular expressions
557 single: \U; in regular expressions
558 single: \v; in regular expressions
559 single: \x; in regular expressions
560 single: \\; in regular expressions
596 regular expressions. Most non-trivial applications always use the compiled
631 programs that use only a few regular expressions at a time needn't worry
632 about compiling regular expressions.
659 Perform case-insensitive matching; expressions like ``[A-Z]`` will also
719 .. index:: single: # (hash); in regular expressions
721 This flag allows you to write regular expressions that look nicer and are
879 .. index:: single: \g; in regular expressions
1298 was matched at all. For example, the expressions ``(a)b``, ``((a)(b))``, and
1395 expressions are generally more powerful, though also more verbose, than
1398 expressions.
1442 Python offers two different primitive operations based on regular expressions:
1453 Regular expressions beginning with ``'^'`` can be used with :func:`search` to
1580 Raw string notation (``r"text"``) keeps regular expressions sane. Without it,
1608 The text categories are specified with regular expressions. The technique is