Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #10748 > unrolled thread

Re: How to define repeated string when using the re module?

Started byMRAB <python@mrabarnett.plus.com>
First post2011-08-02 18:15 +0100
Last post2011-08-02 18:15 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to define repeated string when using the re module? MRAB <python@mrabarnett.plus.com> - 2011-08-02 18:15 +0100

#10748 — Re: How to define repeated string when using the re module?

FromMRAB <python@mrabarnett.plus.com>
Date2011-08-02 18:15 +0100
SubjectRe: How to define repeated string when using the re module?
Message-ID<mailman.1790.1312305324.1164.python-list@python.org>
On 02/08/2011 17:20, smith jack wrote:
> if it's for a single character, this should be very easy, such as
> c{m,n}   the occurrence of c is between m and n,
>
> if i want to define the occurrence of (.*?)</div>   how should make it
> done?  ((.*?)</div>){1,3}  seems not work, any method to define repeat
> string using python regex?

Why do you think it's not working?

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web