summaryrefslogtreecommitdiffstats
path: root/Doc/library/re.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-28450: Fix and improve the documentation for unknown escapes in RE. ↵Serhiy Storchaka2019-02-251-2/+5
| | | | (GH-11920)
* bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546)animalize2019-02-181-0/+2
| | | | | | Need to reset capturing groups between two SRE(match) callings in loops, this fixes wrong capturing groups in rare cases. Also add a missing index in re.rst.
* Add information about DeprecationWarning for invalid escaped characters in ↵Pablo Galindo2019-01-201-1/+4
| | | | the re module (GH-5255)
* Cleanup and improve the regex tokenizer example. (GH-10426)Raymond Hettinger2018-11-091-36/+38
| | | | | | | | | | | 1) Convert weird field name "typ" to the more standard "type". 2) For the NUMBER type, convert the value to an int() or float(). 3) Simplify ``group(kind)`` to the shorter and faster ``group()`` call. 4) Simplify logic go a single if-elif chain to make this easier to extend. 5) Reorder the tests to match the order the tokens are specified. This isn't necessary for correctness but does make the example easier to follow. 6) Move the "column" calculation before the if-elif chain so that users have the option of using this value in error messages.
* bpo-35054: Add yet more index entries for symbols. (GH-10121)Serhiy Storchaka2018-10-281-19/+16
|
* bpo-35054: Add more index entries for symbols. (GH-10064)Serhiy Storchaka2018-10-261-0/+100
|
* bpo-34962: make doctest in Doc/ now passes, and is enforced in CI (GH-9806)Stéphane Wirtel2018-10-121-7/+6
|
* Correct grammar mistake in re.rst. (GH-9745)Andrés Delfino2018-10-061-1/+1
|
* bpo-33892: Doc: Use gender neutral words (GH-7770)Andrés Delfino2018-06-181-4/+4
|
* bpo-33503: Fix the broken pypi link in the source and the documentation ↵Stéphane Wirtel2018-05-151-1/+1
| | | | (GH-6814)
* Fix a reference to the MRE book in re docs (GH-1113)Berker Peksag2018-03-231-10/+8
| | | Reported by Maksym Nikulyak on docs.p.o.
* bpo-30688: Support \N{name} escapes in re patterns. (GH-5588)Serhiy Storchaka2018-02-091-3/+6
| | | Co-authored-by: Jonathan Eunice <jonathan.eunice@gmail.com>
* bpo-32614: Modify re examples to use a raw string to prevent warning (GH-5265)Cheryl Sabella2018-02-021-1/+1
| | | | Modify RE examples in documentation to use raw strings to prevent DeprecationWarning. Add text to REGEX HOWTO to highlight the deprecation. Approved by Serhiy Storchaka.
* bpo-32308: Replace empty matches adjacent to a previous non-empty match in ↵Serhiy Storchaka2018-01-041-4/+10
| | | | re.sub(). (#4846)
* bpo-25054, bpo-1647489: Added support of splitting on zerowidth patterns. ↵Serhiy Storchaka2017-12-041-30/+16
| | | | | | (#4471) Also fixed searching patterns that could match an empty string.
* Use raw strings in the re module examples. (#4616)Serhiy Storchaka2017-11-281-4/+4
|
* bpo-30349: Raise FutureWarning for nested sets and set operations (#1553)Serhiy Storchaka2017-11-161-1/+15
| | | | in regular expressions.
* bpo-15606: Improve the re.VERBOSE documentation. (#4366)Serhiy Storchaka2017-11-141-1/+2
|
* bpo-31690: Allow the inline flags "a", "L", and "u" to be used as group ↵Serhiy Storchaka2017-10-241-28/+30
| | | | flags for RE. (#3885)
* bpo-31714: Improved regular expression documentation. (#3907)Serhiy Storchaka2017-10-141-102/+133
|
* bpo-30397: Add re.Pattern and re.Match. (#1646)Serhiy Storchaka2017-10-041-52/+52
|
* bpo-26656: Improve re.compile documentation (GH-3211)Henk-Jaap Wagenaar2017-08-281-3/+4
| | | | | - Link to the regular expressions object documentation - Clarify that it can be used with more than the two methods currently stated.
* bpo-30398: Add a docstring for re.error. (#1647)Serhiy Storchaka2017-05-271-3/+3
| | | Also document that some attributes may be None.
* Added effect of re.ASCII and reworded slightly (#1782)Brian Ward2017-05-241-3/+5
|
* bpo-30215: Make re.compile() locale agnostic. (#1361)Serhiy Storchaka2017-05-051-0/+5
| | | | | | Compiled regular expression objects with the re.LOCALE flag no longer depend on the locale at compile time. Only the locale at matching time affects the result of matching.
* bpo-10076: Compiled regular expression and match objects now are copyable. ↵Serhiy Storchaka2017-04-161-0/+10
| | | | (#1000)
* bpo-29995: re.escape() now escapes only special characters. (#1007)Serhiy Storchaka2017-04-131-3/+7
|
* bpo-30021: Add examples for re.escape(). (#1048)Serhiy Storchaka2017-04-131-3/+14
| | | | And fix the parameter name.
* bpo-22594: Add a link to the regex module in re documentation (GH-241)Marco Buttu2017-02-261-0/+6
|
* mergeRaymond Hettinger2017-02-061-1/+1
|\
| * Substitute a more readable f-stringRaymond Hettinger2017-02-061-1/+1
| |
| * Fix typos in comment and documentationMartin Panter2016-12-101-1/+1
| |
* | Merge documentation for issue #27030 from 3.6.Serhiy Storchaka2016-12-061-1/+6
|\ \ | |/
| * Issue #27030: Unknown escapes in re.sub() replacement template are allowedSerhiy Storchaka2016-12-061-1/+6
|/ | | | again. But they still are deprecated and will be disabled in 3.7.
* closes issue28082: doc update and NEWS entryEthan Furman2016-11-211-0/+3
|
* Issue #27800: Merge RE repetition doc from 3.5 into 3.6Martin Panter2016-10-151-0/+6
|\
| * Issue #27800: Document limitation and workaround for multiple RE repetitionsMartin Panter2016-10-151-0/+6
| |
| * Issue #27327: fix doc typo, noted by Jakub Wilk.Ned Deily2016-06-151-1/+1
| |
* | Issue 24454: Improve the usability of the re match object named group APIEric V. Smith2016-09-111-0/+16
| |
* | Issue #22493: Inline flags now should be used only at the start of theSerhiy Storchaka2016-09-111-6/+2
| | | | | | | | | | regular expression. Deprecation warning is emitted if uses them in the middle of the regular expression.
* | We're not that far in the future yetZachary Ware2016-09-091-1/+1
| |
* | repair versionadded directiveBenjamin Peterson2016-09-091-1/+1
| |
* | Issue #433028: Added support of modifier spans in regular expressions.Serhiy Storchaka2016-09-091-0/+10
| |
* | Add grammatical article to “an ASCII letter”Martin Panter2016-06-121-3/+3
| |
* | Merge Issue #22558.Terry Jan Reedy2016-06-111-0/+4
|\ \ | |/
| * Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-0/+4
| | | | | | | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* | Issue #27030: Unknown escapes consisting of ``'\'`` and ASCII letter inSerhiy Storchaka2016-06-111-12/+11
|/ | | | regular expressions now are errors.
* Issue #21593: Clarify that re.search() returns the first matchBerker Peksag2016-06-081-2/+2
|
* Issue #23921: Standardized documentation whitespace formatting.Serhiy Storchaka2016-05-101-15/+15
| | | | Original patch by James Edwards.
* Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-151-1/+1
| | | | This affects documentation, code comments, and a debugging messages.