Miss Islington (bot)
67d3f8b85a
Fix a reference to the MRE book in re docs (GH-1113)
...
Reported by Maksym Nikulyak on docs.p.o.
(cherry picked from commit a0a42d22d8
)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
2018-03-23 18:55:26 +03:00
Miss Islington (bot)
c7de1d7ca6
bpo-32614: Modify re examples to use a raw string to prevent warning (GH-5265) ( #5499 )
...
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.
(cherry picked from commit 66771422d0
)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-02-02 16:50:44 -05:00
Serhiy Storchaka
fbb490fd2f
bpo-32308: Replace empty matches adjacent to a previous non-empty match in re.sub(). ( #4846 )
2018-01-04 11:06:13 +02:00
Serhiy Storchaka
70d56fb525
bpo-25054, bpo-1647489: Added support of splitting on zerowidth patterns. ( #4471 )
...
Also fixed searching patterns that could match an empty string.
2017-12-04 14:29:05 +02:00
Serhiy Storchaka
c615be5166
Use raw strings in the re module examples. ( #4616 )
2017-11-28 22:51:38 +02:00
Serhiy Storchaka
05cb728d68
bpo-30349: Raise FutureWarning for nested sets and set operations ( #1553 )
...
in regular expressions.
2017-11-16 12:38:26 +02:00
Serhiy Storchaka
b0b44b4b33
bpo-15606: Improve the re.VERBOSE documentation. ( #4366 )
2017-11-14 17:21:26 +02:00
Serhiy Storchaka
3557b05c5a
bpo-31690: Allow the inline flags "a", "L", and "u" to be used as group flags for RE. ( #3885 )
2017-10-24 23:31:42 +03:00
Serhiy Storchaka
cd195e2a7a
bpo-31714: Improved regular expression documentation. ( #3907 )
2017-10-14 11:14:26 +03:00
Serhiy Storchaka
0b5e61ddca
bpo-30397: Add re.Pattern and re.Match. ( #1646 )
2017-10-04 20:09:49 +03:00
Henk-Jaap Wagenaar
ed94a8b285
bpo-26656: Improve re.compile documentation (GH-3211)
...
- Link to the regular expressions object documentation
- Clarify that it can be used with more than the two methods currently stated.
2017-08-27 22:41:20 -07:00
Serhiy Storchaka
12d6b5d156
bpo-30398: Add a docstring for re.error. ( #1647 )
...
Also document that some attributes may be None.
2017-05-27 16:12:48 +03:00
Brian Ward
c9d6dbc290
Added effect of re.ASCII and reworded slightly ( #1782 )
2017-05-24 00:03:38 -07:00
Serhiy Storchaka
898ff03e1e
bpo-30215: Make re.compile() locale agnostic. ( #1361 )
...
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.
2017-05-05 08:53:40 +03:00
Serhiy Storchaka
fdbd01151d
bpo-10076: Compiled regular expression and match objects now are copyable. ( #1000 )
2017-04-16 10:16:03 +03:00
Serhiy Storchaka
5908300e4b
bpo-29995: re.escape() now escapes only special characters. ( #1007 )
2017-04-13 21:06:43 +03:00
Serhiy Storchaka
8fc7bc2b76
bpo-30021: Add examples for re.escape(). ( #1048 )
...
And fix the parameter name.
2017-04-13 19:17:36 +03:00
Marco Buttu
ed6795e46f
bpo-22594: Add a link to the regex module in re documentation (GH-241)
2017-02-26 07:26:23 -08:00
Raymond Hettinger
0fa47469a9
merge
2017-02-06 07:15:57 -08:00
Raymond Hettinger
d0b9158666
Substitute a more readable f-string
2017-02-06 07:15:31 -08:00
Martin Panter
186b204997
Fix typos in comment and documentation
2016-12-10 05:32:55 +00:00
Serhiy Storchaka
ff3dbe9141
Merge documentation for issue #27030 from 3.6.
2016-12-06 19:25:19 +02:00
Serhiy Storchaka
53c53ea4c5
Issue #27030 : Unknown escapes in re.sub() replacement template are allowed
...
again. But they still are deprecated and will be disabled in 3.7.
2016-12-06 19:15:29 +02:00
Ethan Furman
c88c80b716
closes issue28082: doc update and NEWS entry
2016-11-21 08:29:31 -08:00
Martin Panter
479eb760f4
Issue #27800 : Merge RE repetition doc from 3.5 into 3.6
2016-10-15 01:39:01 +00:00
Martin Panter
684340ede5
Issue #27800 : Document limitation and workaround for multiple RE repetitions
2016-10-15 01:18:16 +00:00
Eric V. Smith
605bdae078
Issue 24454: Improve the usability of the re match object named group API
2016-09-11 08:55:43 -04:00
Serhiy Storchaka
bd48d27944
Issue #22493 : Inline flags now should be used only at the start of the
...
regular expression. Deprecation warning is emitted if uses them in the
middle of the regular expression.
2016-09-11 12:50:02 +03:00
Zachary Ware
c307672395
We're not that far in the future yet
2016-09-09 15:47:05 -07:00
Benjamin Peterson
f46e612e33
repair versionadded directive
2016-09-09 15:34:58 -07:00
Serhiy Storchaka
be9a4e5c85
Issue #433028 : Added support of modifier spans in regular expressions.
2016-09-10 00:57:55 +03:00
Ned Deily
dccc5edfa1
Issue #27327 : fix doc typo, noted by Jakub Wilk.
2016-06-15 18:06:32 -04:00
Martin Panter
98e9051577
Add grammatical article to “an ASCII letter”
2016-06-12 06:17:29 +00:00
Terry Jan Reedy
4da945f361
Merge Issue #22558 .
2016-06-11 15:06:08 -04:00
Terry Jan Reedy
fa089b9b0b
Issue #22558 : Add remaining doc links to source code for Python-coded modules.
...
Reformat header above separator line (added if missing) to a common format.
Patch by Yoni Lavi.
2016-06-11 15:02:54 -04:00
Serhiy Storchaka
9bd85b83f6
Issue #27030 : Unknown escapes consisting of ``'\'`` and ASCII letter in
...
regular expressions now are errors.
2016-06-11 19:15:00 +03:00
Berker Peksag
84f387d420
Issue #21593 : Clarify that re.search() returns the first match
2016-06-08 14:56:56 +03:00
Serhiy Storchaka
dba903993a
Issue #23921 : Standardized documentation whitespace formatting.
...
Original patch by James Edwards.
2016-05-10 12:01:23 +03:00
Martin Panter
6245cb3c01
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
...
This affects documentation, code comments, and a debugging messages.
2016-04-15 02:14:19 +00:00
Georg Brandl
7ff033bd62
Clarify greedy-qualifier example, avoid HTML.
2016-04-12 07:51:41 +02:00
Georg Brandl
5d94134040
Closes #25910 : fix dead and permanently redirected links in the docs. Thanks to SilentGhost for the patch.
2016-02-26 19:37:12 +01:00
Georg Brandl
8c16cb9f65
Closes #26435 : fix syntax in directives. Thanks to Jakub Stasiak.
2016-02-25 20:17:45 +01:00
Zachary Ware
a99ab63d06
Merge with 3.4
2015-11-11 23:33:50 -06:00
Zachary Ware
71a0b43854
Rewrite re.VERBOSE section.
...
It now has slightly better rationale and a less awkward wording in the
explanation.
Inspired by a report of a neither/or conflict by 'animalize' on docs@.
2015-11-11 23:32:14 -06:00
Serhiy Storchaka
a54aae0683
Issue #23622 : Unknown escapes in regular expressions that consist of ``'\'``
...
and ASCII letter now raise a deprecation warning and will be forbidden in
Python 3.6.
2015-03-24 22:58:14 +02:00
Serhiy Storchaka
4eea62fd2e
Issues #814253 , #9179 : Group references and conditional group references now
...
work in lookbehind assertions in regular expressions.
2015-02-21 10:07:35 +02:00
Serhiy Storchaka
83e802796c
Issue #22818 : Splitting on a pattern that could match an empty string now
...
raises a warning. Patterns that can only match empty strings are now
rejected.
2015-02-03 11:04:19 +02:00
Serhiy Storchaka
22a309a434
Issue #21032 : Deprecated the use of re.LOCALE flag with str patterns or
...
re.ASCII. It was newer worked.
2014-12-01 11:50:07 +02:00
Serhiy Storchaka
ad446d57a9
Issue #22578 : Added attributes to the re.error class.
2014-11-10 13:49:00 +02:00
Georg Brandl
0235709b8c
merge with 3.4
2014-10-28 21:41:58 +01:00