View Single Post
Old 12-23-2014, 08:28 AM   #3
dmonasse
Member
dmonasse began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Apr 2014
Location: Paris
Device: ipad 2, Ubuntu
Look at the Python module "re" documentation at https://docs.python.org/2/howto/regex.html#regex-howto
and you shall read:
the solution is to use the non-greedy qualifiers *?, +?, ??, or {m,n}?, which match as little text as possible.
dmonasse is offline   Reply With Quote