On Sun, Jun 20, 2010 at 12:03:47PM +0200, Evert Rol wrote:
> >>> re.sub('(?i)l', '-', a)
> 
> See http://docs.python.org/library/re.html#regular-expression-syntax , search 
> for iLmsux, which provide flags inside the regex.
 
Goodness that was fast. Thanks a lot Evert. For records,

>>> re.sub('l(?i)','-',a)
'Mary Had a -itt-e -amb'


With warm regards,
-Payal
-- 
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to