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
Georg Brandl
bb2d669292
Closes #22736 : move seealso to the bottom of the section about RE syntax.
2014-10-28 21:41:51 +01:00
Serhiy Storchaka
7438e4b56f
Issue 1519638: Now unmatched groups are replaced with empty strings in re.sub()
...
and re.subn().
2014-10-10 11:06:31 +03:00
Raymond Hettinger
c6f22cc0a6
Remove unused leftover stray line
2014-08-04 00:21:11 -07:00
Raymond Hettinger
c566431bf0
Improve regex tokenizer example by using re.finditer().
...
Also, improve variable names and fix column numbers
in the generated output.
2014-08-03 23:38:54 -07:00
Raymond Hettinger
8323f68f3e
Issue 21977: Minor improvements to the regexes in the tokenizer example.
2014-07-14 01:52:00 -07:00
Ezio Melotti
642d4b654f
#21690 : fix a couple of links in the docs of the re module. Noticed by Julian Gilbey.
2014-06-20 00:52:11 +03:00
Serhiy Storchaka
a3369a524c
Issues #814253 , #9179 : Warnings now are raised when group references and
...
conditional group references are used in lookbehind assertions in regular
expressions.
2015-02-21 12:08:52 +02:00
Terry Jan Reedy
0edb5c1668
Issue #21593 : (from StackOverflow) minor doc clarification for re.search.
2014-05-30 16:19:59 -04:00
Serhiy Storchaka
2a6145290b
Removed spaces before commas and periods.
2013-12-23 18:21:57 +02:00
Serhiy Storchaka
a4d170d985
Removed spaces before commas and periods.
2013-12-23 18:20:51 +02:00
Serhiy Storchaka
475546facf
Fixed regex match representation in an example.
2013-12-02 20:23:19 +02:00