Hey everyone,
I'm trying to strip all script-blocks from a HTML-file using regex.
I tried the following in Python:
testfile = open('testfile')
testhtml = testfile.read()
regex = re.compile(']*>(.*?)', re.DOTALL)
result = regex.sub('', blaat)
print result
This strips far more away then just the
Reedick, Andrew wrote:
>
>
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:python-
>> [EMAIL PROTECTED] On Behalf Of Michel Bouwmans
>> Sent: Wednesday, April 09, 2008 3:38 PM
>> To: python-list@python.org
>> Subject: Stripping
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Paul Rubin wrote:
> Chris Stewart <[EMAIL PROTECTED]> writes:
>> I've always had an interest in Python and would like to dabble in it
>> further. I've worked on a few very small command line programs but
>> nothing of any complexity. I'd like to bui
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Reedick, Andrew wrote:
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:python-
>> [EMAIL PROTECTED] On Behalf Of Michel Bouwmans
>> Sent: Wednesday, April 09, 2008 5:44 PM
>> To: python-list@python
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mike Driscoll wrote:
> On Apr 10, 12:05 pm, Michel Bouwmans <[EMAIL PROTECTED]> wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>>
>>
>> Paul Rubin wrote:
>> > Chris Stewart <[EM
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gabriel Genellina wrote:
> Another annoying thing with the Qt license is that you have to choose it
> at the very start of the project. You cannot develop something using the
> open source license and later decide to switch to the commercial licence
>
Steve Holden wrote:
> Michel Bouwmans wrote:
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> Mike Driscoll wrote:
>>
>>> On Apr 10, 12:05 pm, Michel Bouwmans <[EMAIL PROTECTED]> wrote:
>>>> -BEGIN PGP SIGNED MESSA
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Rune Strand wrote:
> On Apr 10, 3:54 am, Chris Stewart <[EMAIL PROTECTED]> wrote:
> ...
>>
>> Next, what would you say is the best framework I should look into?
>> I'm curious to hear opinions on that.
>
> GUI-programming in Python is a neanderthal e
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gabriel Genellina wrote:
> En Fri, 11 Apr 2008 11:31:42 -0300, Michel Bouwmans
> <[EMAIL PROTECTED]> escribió:
>> Gabriel Genellina wrote:
>
>>> Another annoying thing with the Qt license is that you have to choose i
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Torsten Bronger wrote:
> Hallöchen!
Und auch ein hallo, aus den Niederlanden! :P
> Michel Bouwmans writes:
>
>> Gabriel Genellina wrote:
>>
>>> Michel Bouwmans <[EMAIL PROTECTED]> escribió:
>>>
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hey everybody,
I'm having a little problem with urllib2 and Basic HTTP authentication.
I have the following code:
auth = urllib2.HTTPPasswordMgrWithDefaultRealm()
auth.add_password(None, 'https://webmail.osg-erasmus.nl/oneNet/NetStorage/',
user, pas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Max Erickson wrote:
> On Apr 13, 2:11 pm, Michel Bouwmans <[EMAIL PROTECTED]> wrote:
>
>> Using this nice class (adapted to urllib2) as a basehandler I see that no
>> Authentication-header is being send
>> out:ht
12 matches
Mail list logo