E
EXI-Andrews, Jack
the '*' and '+' don't seem to be greedy.. they will consume less in
order to match a string:
('aa', 'ab')
this is the sort of behaviour i'd expect from
'(a+?)(ab)'
a+ should greedily consume a's at the expense of the string not matching
in real life, i am trying to match #defines:
('ab', 'c')
i want this example to fail because the first character after a string
of letters is a '('
i want to match only #defines without parameters.
so what's the definition of greedy?
(pls copy me on responses)
ta,
jack
order to match a string:
('aa', 'ab')
this is the sort of behaviour i'd expect from
'(a+?)(ab)'
a+ should greedily consume a's at the expense of the string not matching
in real life, i am trying to match #defines:
abc(d)').groups()re.match( '#define ([A-Za-z0-9_]+)([^(])', '#define
('ab', 'c')
i want this example to fail because the first character after a string
of letters is a '('
i want to match only #defines without parameters.
so what's the definition of greedy?
(pls copy me on responses)
ta,
jack