On 04/08/13 08:45, Alex Kleider wrote:
sorry, my bad. I forgot to delete that backslash, I meant
re.findall(r"\be\b", "d e f"). Same with the other example.
..but the interesting thing is that the presence or absence of the
spurious back slashes seems not to change the results.
It wouldn't
Hi,
not quite. The moral is to learn about greedy and non-greedy matching ;)!
-nik
Alex Kleider schrieb:
>On 2013-08-03 13:38, Dominik George wrote:
>> Hi,
>>
>> b is defined as all non-word characters, so it is the complement oft
>> w. w is [A-Za-z0-9_-], so b includes $ and thus cuts off