summaryrefslogtreecommitdiffstats
path: root/Doc/library/re.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-44940: Clarify the documentation of re.findall() (GH-27849)Miss Islington (bot)2021-08-221-4/+14
| | | | | | | Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> Co-authored-by: Vedran Čačić <vedgar+github@gmail.com> (cherry picked from commit 64f9e7b19dc1603fcbd07c17c9860085b9d21465) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Update URLs in comments and metadata to use HTTPS (GH-27458) (GH-27478)Miss Islington (bot)2021-07-301-2/+2
| | | | | (cherry picked from commit be42c06bb01206209430f3ac08b72643dc7cad1c) Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
* Minor modernization and readability improvement to the tokenizer example ↵Raymond Hettinger2020-04-171-2/+6
| | | | (GH-19558)
* bpo-38294: Add list of no-longer-escaped chars to re.escape documentation. ↵Ricardo Bánffy2019-10-071-3/+5
| | | | | | | | | (GH-16442) Prior to 3.7, re.escape escaped many characters that don't have special meaning in Python, but that use to require escaping in other tools and languages. This commit aims to make it clear which characters were, but are no longer escaped.
* Doc: Fix missing negation. (GH-14640)Julien Palard2019-09-111-2/+2
| | | | | | | Reported by Hug Capella on docs@. Automerge-Triggered-By: @matrixise
* Fix typo in re.escape documentation (GH-14722)Robert DiPietro2019-07-131-1/+1
|
* bpo-36645: Fix ambiguous formatting in re.sub() documentation (GH-12879)mollison2019-04-211-0/+1
|
* 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
| |