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


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

How to define repeated string when using the re module?

Started bysmith jack <thinke365@gmail.com>
First post2011-08-03 00:20 +0800
Last post2011-08-03 00:20 +0800
Articles 1 — 1 participant

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


Contents

  How to define repeated string when using the re module? smith jack <thinke365@gmail.com> - 2011-08-03 00:20 +0800

#10745 — How to define repeated string when using the re module?

Fromsmith jack <thinke365@gmail.com>
Date2011-08-03 00:20 +0800
SubjectHow to define repeated string when using the re module?
Message-ID<mailman.1786.1312302050.1164.python-list@python.org>
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?

[toc] | [standalone]


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


csiph-web