Fred Drake
c547b46c06
Be more specific about corner cases in the description of the $ RE syntax,
...
and include an example where the MULTILINE flag makes a real difference.
This closes SF bug #441600 .
2001-07-23 21:14:59 +00:00
Fred Drake
f4bdb57e15
Fix return value for m.group() for groups not in the part of the RE that
...
matched; reported by Paul Moore.
Wrapped several long lines.
2001-07-12 14:13:43 +00:00
Fred Drake
907e76b620
Fix up a few style nits -- avoid "e.g." and "i.e." -- these make
...
translation more difficult, as well as reading the English more
difficult for non-native speakers.
2001-07-06 20:30:11 +00:00
Fred Drake
895aa9da4c
Suggestion from Keith Briggs: refer to RE objects consistently instead of
...
introducing a new term ("regex") without defining it.
2001-04-18 17:26:20 +00:00
Fred Drake
e20bd19f86
Convert several \seetext references to \seerfc and \seetitle versions.
...
These format somewhat better and include more semantic information in the
source.
2001-04-12 16:47:17 +00:00
Andrew M. Kuchling
75afc0b914
Document the .lastindex and .lastgroup attributes of MatchObject
2000-10-18 23:08:13 +00:00
Fred Drake
2c4f554b78
Fixed a large number of small problems, mostly noted by Detlef Lannert
...
<lannert@lannert.rz.uni-duesseldorf.de>.
2000-10-10 22:00:03 +00:00
Fred Drake
062ea2e70b
Made a number of revisions suggested by Fredrik Lundh.
...
Revised the first paragraph so it doesn't sound like it was written
when 7-bit strings were assumed; note that Unicode strings can be used.
2000-10-06 19:59:22 +00:00
Andrew M. Kuchling
9351dd2084
Document the lookbehind assertions (closing bug#115119)
2000-10-05 15:22:28 +00:00
Andrew M. Kuchling
7a90db6131
Document expand() method of MatchObjects
2000-10-05 12:35:29 +00:00
Fred Drake
e53793bf4c
Updates from Fredrik Lundh <effbot@telia.com> about Unicode-related
...
behavior.
2000-09-25 17:52:40 +00:00
Fred Drake
77a6c9ece5
Minor markup nits around use of \optional.
2000-09-07 14:00:51 +00:00
Andrew M. Kuchling
af5b76677f
Changed obsolete e-mail alias
2000-06-27 03:16:04 +00:00
Fred Drake
356d0ceb7e
Use \citetitle in one place.
1999-11-09 20:10:01 +00:00
Fred Drake
3d0971e33e
For "Matching vs. Searching", remove comment that the section is
...
incomplete; I don't remember what else I thought I was going to put
in, but it looks o.k. to me know.
1999-06-29 21:21:19 +00:00
Fred Drake
bfb092eb86
Misspellling: "occurance" --> "occurrence"
1999-04-09 19:57:09 +00:00
Fred Drake
dda199b261
Moved \versionadded to end of description sections.
1999-02-02 19:01:37 +00:00
Fred Drake
a7998f650a
Revised comments on null bytes in pattern string.
...
Removed "New" from module synopsis.
1999-01-19 20:00:08 +00:00
Fred Drake
cd058539a8
Adjust a few niggles that affected the HTML conversion (a couple of
...
"^"s were being dropped in the context of [^...]).
1998-12-28 19:03:24 +00:00
Fred Drake
768ac6b804
Start of text that describes differences between match and search.
...
Strengthen pointers to the search() function and method.
1998-12-22 18:19:45 +00:00
Fred Drake
1e270f0e03
Nits to support conversions.
1998-11-30 22:58:12 +00:00
Andrew M. Kuchling
c1cea208bc
Added URL to HOWTO page, with reference to Regex HOWTO.
...
Corrected error: {,5} is not equivalent to {0,5}.
1998-10-28 15:44:14 +00:00
Guido van Rossum
7d447aabbf
Moved search and match around so that search is documented first.
1998-10-13 16:03:52 +00:00
Guido van Rossum
5fb2631ff9
Explicitly document the fact that the search method returns a MatchObject.
...
(Reported by Gary Herron.)
1998-09-21 19:26:16 +00:00
Fred Drake
10a7985565
re.findall(): Mark as added in 1.5.2.
1998-09-18 17:11:49 +00:00
Fred Drake
d16d4981d1
Markup nits.
1998-09-10 20:21:00 +00:00
Andrew M. Kuchling
d22e25002a
Clarify wording in the description of re.split
...
Simplify the patterns in the examples for re.split
1998-08-14 14:49:20 +00:00
Fred Drake
295da24eaf
New section header style.
...
Fix up a few synopses.
1998-08-10 19:42:37 +00:00
Fred Drake
66da9d69fc
re is standard, not built-in.
1998-08-07 18:57:18 +00:00
Fred Drake
b91e934cf1
Adjusted to use the new module synopsis support macros.
1998-07-23 17:59:49 +00:00
Guido van Rossum
6c373f758f
Document new default arg to groups() and new functions/methods
...
groupdict() and findall().
1998-06-29 22:48:01 +00:00
Andrew M. Kuchling
65b7863efc
Fix unclear wording pointed out by Tim Peters, about the interaction between
...
^ and the pos argument to re.match().
Also, fixed a typo in libregex.tex.
1998-06-22 15:02:42 +00:00
Fred Drake
42de185a77
Added \label to subsections which didn't have one, since this module has
...
subsections listed in the documentation index sidebar. (Why?)
1998-04-20 16:28:44 +00:00
Andrew M. Kuchling
253328104f
Many markup changes (to \regexp, mostly)
...
Clarified text on 8-bit cleanness, complemented sets like [^5], and {m,n}
qualifier.
1998-04-09 14:56:04 +00:00
Fred Drake
3a0351cf85
Remove all uses of \sectcode; we can now use logical markup everywhere.
1998-04-04 07:23:21 +00:00
Fred Drake
82143348aa
Remove obsolete \setindexsubitem macro.
1998-04-04 06:28:14 +00:00
Guido van Rossum
791468f731
Some clarifications of out-of-range group indexes/names
1998-04-03 20:07:37 +00:00
Fred Drake
76547c5631
Minor nits.
...
Moved IGNORECASE & friends to "top level" definitions following compile(),
since there is no other case of nesting in the manual.
Use {memberdesc} and {methoddesc} as appropriate.
1998-04-03 05:59:05 +00:00
Guido van Rossum
e9625e86b8
AMK's version from the latest pypcre distribution. This clarifies a
...
few things and adds docs for what happens to escapes in replacement
strings.
1998-04-02 01:32:24 +00:00
Fred Drake
013ad9869e
Cleaned up some remaining markup nits.
...
Andrew: In description of (?iLmsx), you say it matches the empty string and
sets the corresponding flag. Is this correct? Or does it only set the flag?
1998-03-08 07:38:27 +00:00
Fred Drake
20e01966f5
Logical markup.
...
Several uses of "\^" could be simplified; this fixes part of the info
generation process.
1998-02-19 15:09:35 +00:00
Fred Drake
2705e801d9
For the lists which describe the regular expression syntax, increase the
...
width available so we don't run into the left page margin.
1998-02-16 21:21:13 +00:00
Fred Drake
1947991c2f
Remove all \bcode / \ecode cruft; this is no longer needed. See previous
...
checkin of myformat.sty.
Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}"
everywhere.
Some other minor nits that I happened to come across.
1998-02-13 06:58:54 +00:00
Guido van Rossum
f5370f4019
Turn the space in [\^ ...] into a hard space: [\^\ ...].
1998-02-11 22:52:47 +00:00
Guido van Rossum
46503922a0
Various updates to the effect that the group argument is always optional.
...
Also documented that groups() now always returns a tuple.
1998-01-19 23:14:17 +00:00
Fred Drake
023f87fbf8
Lots of minor markup nits, all consistency related.
...
Consistently use trailing "()" on function / method names.
Wrapped some long lines.
1998-01-12 19:16:24 +00:00
Guido van Rossum
97546399c7
Document maxsplit arg for split(), with incompatibility note about 1.5
...
release bug.
Document groups() changed behaviour (now always returns tuple).
1998-01-12 18:58:53 +00:00
Guido van Rossum
b2c45a8197
Sigh. Apply a similar patch to the *other* occurrence of [^...].
1998-01-12 05:49:05 +00:00
Fred Drake
c4586387f6
In description of \D, revise markup so that the caret shows up in the HTML
...
version as well as the dvi form. Without the fix, it showed up as an extra
zero character.
Bug reported by Hugh Sasse <hgs@dmu.ac.uk>.
1998-01-06 15:46:21 +00:00
Guido van Rossum
eb0f066fb8
Correct small nits reported by Rob Hooft.
1997-12-30 20:38:16 +00:00
Guido van Rossum
e66e9c5562
Remove more commented-out text that is no longer needed.
1997-12-29 21:43:04 +00:00
Guido van Rossum
29d3b9368c
Remove the commented-out warning at the top. It shouldn't be there
...
for the 1.5 release version of the file.
1997-12-29 21:42:03 +00:00
Fred Drake
78f8e98232
Lots of minor nits that allow this file to get processed without failures by
...
the info generation phases. Most of the errors had occurred in the makeinfo
step.
Commented out the warning at the top; this should still really be removed
before 1.5, but that's not my call. It generated problems for the info
conversion as well.
1997-12-29 21:39:39 +00:00
Fred Drake
f9951818a6
Normalized the \seetext markup to match the only other instance: should be
...
"\seetext{...}" instead of "\seetext ...".
1997-12-29 16:37:04 +00:00
Guido van Rossum
0148bbf966
AMK's latest
1997-12-22 22:41:40 +00:00
Guido van Rossum
e4eb2231fd
AMK's latest
1997-12-17 00:23:39 +00:00
Guido van Rossum
48d0437d1d
AMK's latest version.
1997-12-11 20:19:08 +00:00
Guido van Rossum
bd49ac4492
The 'l' flag (locale specific matching) has been renamed to 'L'.
1997-12-10 23:05:53 +00:00
Guido van Rossum
a42c17851c
Turn the table for flags into a nested itemized environment.
1997-12-09 20:41:47 +00:00
Guido van Rossum
0b334104ac
New version from AMK -- with minor corrections to make it legal latex.
1997-12-08 17:33:40 +00:00
Barry Warsaw
4552f3d6de
In the description of sub(), give a better explanation of the
...
interface when repl is a function. Also give a simple example of
using a function repl.
1997-11-20 00:15:13 +00:00
Guido van Rossum
d7dc2eb708
Put {} around \^ in sets to force latex2html to do the right thing...
1997-10-22 03:03:44 +00:00
Guido van Rossum
eb53ae4928
Fixed some stuff that was incorrectly copied from regex.
1997-10-05 18:54:07 +00:00
Guido van Rossum
1acceb0650
Added AMK's first cut at docs for re.py
1997-08-14 23:12:18 +00:00