regexp
vertigo
spam at spam.pl
Tue Dec 19 14:15:34 EST 2006
Hello
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.
I could use something like /s from perl which treats . as all signs
(including new line). How can i do that ?
Maybe there is other way to achieve the same results ?
Thanx
More information about the Python-list
mailing list