Re: Overlapping Regular Expression Matches With findall()
- From: "Mystilleef" <mystilleef@xxxxxxxxx>
- Date: 15 Dec 2005 12:26:07 -0800
Hello,
Thanks for your response. I was going by the definition in
the manual. I believe a search only returns the first
match of a regular expression pattern in a string and then
stops further searches if one is found. That's not what I
want.
I want a pattern that scans the entire string but avoids
returning duplicate matches. For example "cat", "cate",
"cater" may all well be valid matches, but I don't want
duplicate matches of any of them. I know I can filter the
list containing found matches myself, but that is somewhat
expensive for a list containing thousands of matches.
Thanks
.
- Follow-Ups:
- Re: Overlapping Regular Expression Matches With findall()
- From: Fredrik Lundh
- Re: Overlapping Regular Expression Matches With findall()
- From: Simon Brunning
- Re: Overlapping Regular Expression Matches With findall()
- References:
- Overlapping Regular Expression Matches With findall()
- From: Mystilleef
- Re: Overlapping Regular Expression Matches With findall()
- From: Fredrik Lundh
- Overlapping Regular Expression Matches With findall()
- Prev by Date: Re: Interprocess communication and memory mapping
- Next by Date: Re: Why and how "there is only one way to do something"?
- Previous by thread: Re: Overlapping Regular Expression Matches With findall()
- Next by thread: Re: Overlapping Regular Expression Matches With findall()
- Index(es):
Relevant Pages
|