Lines Matching full:expressions

24 Regular expressions use the backslash character (``'\'``) to indicate
45 :ref:`compiled regular expressions <re-objects>`. The functions are shortcuts
66 Regular expressions can be concatenated to form new regular expressions; if *A*
67 and *B* are both regular expressions, then *AB* is also a regular expression.
71 references. Thus, complex expressions can easily be constructed from simpler
72 primitive expressions like the ones described here. For details of the theory
73 and implementation of regular expressions, consult the Friedl book [Frie09]_,
76 A brief explanation of the format of regular expressions follows. For further
79 Regular expressions can contain both special and ordinary characters. Most
81 expressions; they simply match themselves. You can concatenate ordinary
88 how the regular expressions around them are interpreted.
99 .. index:: single: . (dot); in regular expressions
106 .. index:: single: ^ (caret); in regular expressions
112 .. index:: single: $ (dollar); in regular expressions
123 .. index:: single: * (asterisk); in regular expressions
130 .. index:: single: + (plus); in regular expressions
137 .. index:: single: ? (question mark); in regular expressions
144 single: *?; in regular expressions
145 single: +?; in regular expressions
146 single: ??; in regular expressions
158 single: *+; in regular expressions
159 single: ++; in regular expressions
160 single: ?+; in regular expressions
182 single: {} (curly brackets); in regular expressions
220 .. index:: single: \ (backslash); in regular expressions
233 raw strings for all but the simplest expressions.
236 single: [] (square brackets); in regular expressions
244 .. index:: single: - (minus); in regular expressions
257 .. index:: single: \ (backslash); in regular expressions
263 .. index:: single: ^ (caret); in regular expressions
277 .. .. index:: single: --; in regular expressions
278 .. .. index:: single: &&; in regular expressions
279 .. .. index:: single: ~~; in regular expressions
280 .. .. index:: single: ||; in regular expressions
296 .. index:: single: | (vertical bar); in regular expressions
310 single: () (parentheses); in regular expressions
319 .. index:: single: (?; in regular expressions
345 .. index:: single: (?:; in regular expressions
394 .. index:: single: (?P<; in regular expressions
425 .. index:: single: (?P=; in regular expressions
431 .. index:: single: (?#; in regular expressions
436 .. index:: single: (?=; in regular expressions
443 .. index:: single: (?!; in regular expressions
450 .. index:: single: (?<=; in regular expressions
477 .. index:: single: (?<!; in regular expressions
487 .. index:: single: (?(; in regular expressions
508 .. index:: single: \ (backslash); in regular expressions
520 .. index:: single: \A; in regular expressions
525 .. index:: single: \b; in regular expressions
541 .. index:: single: \B; in regular expressions
552 .. index:: single: \d; in regular expressions
564 .. index:: single: \D; in regular expressions
571 .. index:: single: \s; in regular expressions
585 .. index:: single: \S; in regular expressions
592 .. index:: single: \w; in regular expressions
606 .. index:: single: \W; in regular expressions
615 .. index:: single: \Z; in regular expressions
621 single: \a; in regular expressions
622 single: \b; in regular expressions
623 single: \f; in regular expressions
624 single: \n; in regular expressions
625 single: \N; in regular expressions
626 single: \r; in regular expressions
627 single: \t; in regular expressions
628 single: \u; in regular expressions
629 single: \U; in regular expressions
630 single: \v; in regular expressions
631 single: \x; in regular expressions
632 single: \\; in regular expressions
671 regular expressions. Most non-trivial applications always use the compiled
713 Perform case-insensitive matching; expressions like ``[A-Z]`` will also
784 .. index:: single: # (hash); in regular expressions
786 This flag allows you to write regular expressions that look nicer and are
838 programs that use only a few regular expressions at a time needn't worry
839 about compiling regular expressions.
990 .. index:: single: \g; in regular expressions
1428 was matched at all. For example, the expressions ``(a)b``, ``((a)(b))``, and
1522 expressions are generally more powerful, though also more verbose, than
1525 expressions.
1569 Python offers different primitive operations based on regular expressions:
1586 Regular expressions beginning with ``'^'`` can be used with :func:`search` to
1715 Raw string notation (``r"text"``) keeps regular expressions sane. Without it,
1743 The text categories are specified with regular expressions. The technique is
1822 .. [Frie09] Friedl, Jeffrey. Mastering Regular Expressions. 3rd ed., O'Reilly