Commit Graph

108 Commits

Author SHA1 Message Date
Serhiy Storchaka 32eddc1bbc Issue #16203: Add re.fullmatch() function and regex.fullmatch() method,
which anchor the pattern at both ends of the string to match.

Original patch by Matthew Barnett.
2013-11-23 23:20:30 +02:00
Ezio Melotti 7571941db6 #19639: update the repr of the match objects in the docs. Patch by Claudiu Popa. 2013-11-23 20:27:27 +02:00
Georg Brandl daa1fa991c Back out accidentally pushed changeset b51218966201. 2013-10-13 09:32:59 +02:00
Georg Brandl 4300019e1a Add re.fullmatch() function and regex.fullmatch() method, which anchor the
pattern at both ends of the string to match.

Patch by Matthew Barnett.
Closes #16203.
2013-10-13 09:18:45 +02:00
Georg Brandl 2070e83f28 Fix example in backreference description. Found by Alexander Heger on docs@. 2013-10-06 12:58:20 +02:00
Georg Brandl 3c6780c6d8 Closes #15956: improve documentation of named groups and how to reference them. 2013-10-06 12:08:14 +02:00
Ezio Melotti 7ce22d1940 #16304: merge with 3.2. 2012-11-04 06:59:51 +02:00
Ezio Melotti b87f82f8d4 #16304: clarify match objects docs. Initial patch by Jan Duzinkiewicz. 2012-11-04 06:59:22 +02:00
Antoine Pitrou 463badf06c Issue #3665: \u and \U escapes are now supported in unicode regular expressions.
Patch by Serhiy Storchaka.
2012-06-23 13:29:19 +02:00
Ezio Melotti 5fe0f4e369 #14519: merge with 3.2. 2012-04-29 11:48:54 +03:00
Ezio Melotti a0b1d1eea2 #14519: fix the regex used in the scanf example. 2012-04-29 11:47:28 +03:00
Ezio Melotti 0ce1649674 #14461: merge with 3.2. 2012-04-29 07:35:22 +03:00
Ezio Melotti 0a6b5419b0 #14461: fix wording. 2012-04-29 07:34:46 +03:00
Ezio Melotti e240947cc0 #14155: merge note about \b from 3.2. 2012-04-29 04:53:20 +03:00
Ezio Melotti 285e51b7e0 #14155: add a note about \b. 2012-04-29 04:52:30 +03:00
Georg Brandl 869ac7895f merge with 3.2 2012-03-17 17:29:39 +01:00
Georg Brandl 3a19e542ff Closes #14250: regex.flags has not only explicit flags but also implicit flags and those from the pattern 2012-03-17 17:29:27 +01:00
Georg Brandl 9758fcfb87 merge with 3.2 2012-03-17 17:26:36 +01:00
Georg Brandl 557a3ec9bb Closes #14343: avoid shadowing builtin input() in example code. 2012-03-17 17:26:27 +01:00
Georg Brandl 5ec6fdb0f6 Closes #14342: remove out-of-date section about avoiding recursion errors. 2012-03-17 17:25:47 +01:00
Georg Brandl 5cd2767144 #14283: merge with 3.2 2012-03-14 08:07:29 +01:00
Georg Brandl 69c7a69cbe Closes #14283: match() and search() are regex methods, not match methods. 2012-03-14 08:02:43 +01:00
Ezio Melotti 6ea00ef25a #14155: merge with 3.2. 2012-02-29 13:40:11 +02:00
Ezio Melotti 443f000bdd #14155: remove duplication about search vs match in re doc. 2012-02-29 13:39:05 +02:00
Ezio Melotti 0b8123d8ae #10713: merge with 3.2. 2012-02-29 11:49:45 +02:00
Ezio Melotti 5a045b9f54 #10713: Improve documentation for \b and \B and add a few tests. Initial patch and tests by Martin Pool. 2012-02-29 11:48:44 +02:00
Sandro Tosi da785fd527 Issue #13690: add re.DEBUG; patch by Filip Gruszczyński 2012-01-01 12:55:20 +01:00
Sandro Tosi 245537a84d merge with 3.2 2012-01-01 12:56:04 +01:00
Ezio Melotti 9987d9351c #13613: merge with 3.2. 2011-12-17 01:20:02 +02:00
Ezio Melotti e5b2ac8987 #13613: fix example in re doc. 2011-12-17 01:17:17 +02:00
Ezio Melotti 27607290a6 #13219: merge with 3.2. 2011-10-20 19:40:44 +03:00
Ezio Melotti 81231d9379 #13219: clarify section about character sets in the re documentation. 2011-10-20 19:38:04 +03:00
Raymond Hettinger eeb905bd7b Merge 2011-10-19 14:10:37 -07:00
Raymond Hettinger 5768e0c788 Issue 11931: Minor punctuation/grammar/wording fixups to the regex docs 2011-10-19 14:10:07 -07:00
Sandro Tosi 5f4ea28f49 merge with 3.2 2011-08-19 22:55:24 +02:00
Sandro Tosi 6a633bb878 fix description of \r; thanks to Thomas Waldmann from docs@ 2011-08-19 22:54:50 +02:00
Raymond Hettinger 1dc5407020 Clean-up example. 2011-05-23 12:46:20 -07:00
Raymond Hettinger 4b244ef255 Clean-up example. 2011-05-23 12:45:34 -07:00
Raymond Hettinger db3dd8a6cc Further beautification of the example 2011-05-13 01:39:22 -07:00
Raymond Hettinger 23157e5ddc Further beautification of the example 2011-05-13 01:38:31 -07:00
Raymond Hettinger 2584b2f9f3 Neaten up example so it can be cut and pasted. 2011-05-13 01:04:45 -07:00
Raymond Hettinger 9c47d778f7 Neaten up example so it can be cut and pasted. 2011-05-13 01:03:50 -07:00
Georg Brandl 93ea851e83 Merge two minor doc changes into default. 2011-05-13 07:01:58 +02:00
Georg Brandl 325477e20e Fix unbound local error in RE tokenizer example. Thanks to Herman L. Jackson. 2011-05-13 06:54:23 +02:00
Ezio Melotti 88fdeb45ef #2650: re.escape() no longer escapes the "_". 2011-04-10 12:59:16 +03:00
Senthil Kumaran e858bca356 forward merge from 3.1 2011-03-12 11:42:33 +08:00
Senthil Kumaran abd4a05561 Fix issue11283 - Clarifying a re pattern in the re module docs for conditional regex 2011-03-12 11:40:25 +08:00
orsenthil@gmail.com 476021b3d0 Fix issue11283 - Clarifying a re pattern in the re module docs for conditional regex 2011-03-12 10:46:25 +08:00
Raymond Hettinger c2c7c37377 Make the example a little more interesting and useful. 2010-12-07 09:44:21 +00:00
Raymond Hettinger 1fa7682c26 Note improvements to the docs. 2010-12-06 23:31:36 +00:00