Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #98718
| Path | csiph.com!au2pb.net!feeder.erje.net!us.feeder.erje.net!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!gordon |
|---|---|
| From | John Gordon <gordon@panix.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: Is it useful for re.M in this example? |
| Date | Thu, 12 Nov 2015 22:00:32 +0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 15 |
| Message-ID | <n23260$kkj$2@reader1.panix.com> (permalink) |
| References | <fc8a4061-5156-41c8-bfd7-d9a8da462418@googlegroups.com> |
| NNTP-Posting-Host | panix1.panix.com |
| X-Trace | reader1.panix.com 1447365632 21139 166.84.1.1 (12 Nov 2015 22:00:32 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Thu, 12 Nov 2015 22:00:32 +0000 (UTC) |
| User-Agent | nn/6.7.3 |
| Xref | csiph.com comp.lang.python:98718 |
Show key headers only | View raw
In <fc8a4061-5156-41c8-bfd7-d9a8da462418@googlegroups.com> fl <rxjwg98@gmail.com> writes:
> re.M Makes $ match the end of a line (not just the end of the string) and
> makes ^ match the start of any line (not just the start of the string).
> But I don't see the reason to put re.M in the example project:
That's because your sample string does not contain newline characters.
If it did, you would see the effect of re.M.
--
John Gordon A is for Amy, who fell down the stairs
gordon@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Is it useful for re.M in this example? fl <rxjwg98@gmail.com> - 2015-11-12 13:34 -0800 Re: Is it useful for re.M in this example? John Gordon <gordon@panix.com> - 2015-11-12 22:00 +0000 Re: Is it useful for re.M in this example? Terry Reedy <tjreedy@udel.edu> - 2015-11-12 22:32 -0500
csiph-web