Re: re.sub problem
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: re.sub problem

From: RunLevelZero <Aiwass333@gmail.com>
Date: Fri Mar 31 2006 - 18:27:04 CEST

Okay I just woke up and haven't had enough coffee so if I'm off here
please forgive me. Are you saying that if there is an emptly line then
it borks? If so just use re.S ( re.DOTALL ) and that should take care
of it. It will treat the ( . ) special. Otherwise it ignores new
lines.
Received on Sun Apr 30 21:47:54 2006