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: veracon <veracon@gmail.com>
Date: Fri Mar 31 2006 - 19:14:11 CEST

Thanks a lot! Compiling with re.DOTALL did fix my problem for the most
part; there still are a few problems with my code, but I think I can
fix those myself.

Again, thanks!

> 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:48:14 2006