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


Groups > comp.lang.python > #10745

How to define repeated string when using the re module?

Date 2011-08-03 00:20 +0800
Subject How to define repeated string when using the re module?
From smith jack <thinke365@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1786.1312302050.1164.python-list@python.org> (permalink)

Show all headers | View raw


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?

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web