Mystilleef wrote:
> Thanks for your response. I was going by the definition in
> the manual.
"non-overlapping" in that context means that if you e.g. search for "(ba)+"
in the string "bababa", you get one match ("bababa"), not three or six.
in your case, it sounds like you want a search for "ba"
On Thu, 15 Dec 2005 20:33:42 +, Simon Brunning <[EMAIL PROTECTED]> wrote:
>On 15 Dec 2005 12:26:07 -0800, Mystilleef <[EMAIL PROTECTED]> wrote:
>> I want a pattern that scans the entire string but avoids
>> returning duplicate matches. For example "cat", "cate",
>> "cater" may all well be vali
On 15 Dec 2005 12:26:07 -0800, Mystilleef <[EMAIL PROTECTED]> wrote:
> 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
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 avoi
"Mystilleef" wrote:
> Is there a simple flag to set to allow overlapping matches
> for the findall() regular expression method? In other words,
> if a string contains five occurrences of the string pattern
> "cat", calling findall on the string returns a list
> containing five "cat" strings. Is it