Code review comment for lp:~yann-papouin/ocb-addons/6.1-bug-1267845-product-and-category-search-improved-usability

Revision history for this message
Yann Papouin (yann-papouin) wrote :

I'm getting following results:

>>> re.compile('(\[(.*?)\]?)').search('[bla').group(1)
'['
>>> re.compile('(\[(.*?)\]?)').search('[bla').group(2)
''
>>> re.compile('(\[(.*?)\]?)').search('[bla] bob').group(1)
'['
>>> re.compile('(\[(.*?)\]?)').search('[bla] bob').group(2)
''
>>> re.compile('(\[(.*?)\])').search('[bla] bob').group(1)
'[bla]'
>>> re.compile('(\[(.*?)\])').search('[bla] bob').group(2)
'bla'

« Back to merge proposal