regex matching rst code block?

Edward K. Ream edreamleo at charter.net
Sun Sep 3 12:43:20 EDT 2006


>  r"(::\s*\n(\s*\n)*((\s+).*?\n)(((\4).*?\n)|(\s*\n))*)"

Thanks for this.  I'll try it out.

Edward
--------------------------------------------------------------------
Edward K. Ream   email:  edreamleo at charter.net
Leo: http://webpages.charter.net/edreamleo/front.html
-------------------------------------------------------------------- 





More information about the Python-list mailing list