regexp
vertigo
spam at spam.pl
Tue Dec 19 14:39:45 EST 2006
> vertigo wrote:
>> I need to use some regular expressions for more than one line.
>> And i would like to use some modificators like: /m or /s in perl.
>> For example:
>> re.sub("<script.*>.*</script>","",data)
>> will not cut out all javascript code if it's spread on many lines.
>
> that won't cut out all javascript code period.
do you have any idea what will do ?
i need to cut everything but the pure text data.
Thanx
More information about the Python-list
mailing list