Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #10748
| Date | 2011-08-02 18:15 +0100 |
|---|---|
| From | MRAB <python@mrabarnett.plus.com> |
| Subject | Re: How to define repeated string when using the re module? |
| References | <CAN1FwxcUv4m6nomM5bVPogiL-2_2czUwm1oCwVXsg2pRUsH5RQ@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1790.1312305324.1164.python-list@python.org> (permalink) |
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?
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: How to define repeated string when using the re module? MRAB <python@mrabarnett.plus.com> - 2011-08-02 18:15 +0100
csiph-web