On Fri, Mar 6, 2009 at 7:56 AM, ski wrote:
> Hello,
> I have this:
>
import re
s = "Association of British Travel Agents (ABTA) No. 56542\nAir Travel
Organisation Licence (ATOL)\nAppointed Agents of IATA (IATA)\nIncentive
Travel & Meet. Association (ITMA)"
licenses = re.sp
Hello,
I have this:
>>> import re
>>> s = "Association of British Travel Agents (ABTA) No. 56542\nAir
Travel Organisation Licence (ATOL)\nAppointed Agents of IATA
(IATA)\nIncentive Travel & Meet. Association (ITMA)"
>>> licenses = re.split("\n+", s)
>>> licenseRe = re.compile(r'\(([A-Z]+)\)( N