[Tutor] Removing Content from Lines....

sina sareth sinasareth at yahoo.com
Thu Mar 24 21:24:04 EDT 2016


I wonder if somebody may give some clues to write this method.
Use Django to build a view where you can download all Quotes in CSV form. 
Thanks
 

    On Thursday, March 24, 2016 5:55 PM, Sam Starfas via Tutor <tutor at python.org> wrote:
 

 Hello,I am hoping you experts can help out a newbie.I have written some python code to gather a bunch of sentences from many files. These sentences contain the content:


blah blah blah blah <uicontrol>1-up printing</uicontrol>blah blah blah blah blah blah blah blah
blah blah <uicontrol>Preset</uicontrol>blah blah blah blah
blah blah blah <uicontrol>Preset</uicontrol> blah blah blah


What I want to do is remove the words before the <uicontrol> and after the </uicontrol>. How do I do that in Python? 
Thanks for any and all help.Sam
_______________________________________________
Tutor maillist  -  Tutor at python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


  


More information about the Tutor mailing list