Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #10745 > unrolled thread
| Started by | smith jack <thinke365@gmail.com> |
|---|---|
| First post | 2011-08-03 00:20 +0800 |
| Last post | 2011-08-03 00:20 +0800 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
How to define repeated string when using the re module? smith jack <thinke365@gmail.com> - 2011-08-03 00:20 +0800
| From | smith jack <thinke365@gmail.com> |
|---|---|
| Date | 2011-08-03 00:20 +0800 |
| Subject | How 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?
Back to top | Article view | comp.lang.python
csiph-web