multipleSpaces = re.compile(u'\\h+')
importantTextString = '\n \n \n \t\t '
importantTextString = multipleSpaces.sub("M", importantTextString)
I would have expected consecutive spaces and tabs to be replaced by M
but nothing is being replaced. If I try the following, then I'm left
only with M,
On 2 Apr, 15:15, [EMAIL PROTECTED] wrote:
> On 2 Apr, 15:12, [EMAIL PROTECTED] wrote:
>
>
>
> > On Apr 2, 3:06 pm, [EMAIL PROTECTED] wrote:
>
> > > Hi,
>
> > > I found the following code on the net -
>
> > > http://mail-archives.apache.org/mod_mbox/httpd-python-cvs/200509.mbox/[EMAIL
> > > PROTECT
On 2 Apr, 15:12, [EMAIL PROTECTED] wrote:
> On Apr 2, 3:06 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > Hi,
>
> > I found the following code on the net -
>
> > http://mail-archives.apache.org/mod_mbox/httpd-python-cvs/200509.mbox/[EMAIL
> > PROTECTED]
>
> > def count(self):
> > -db = sqlite.
Hi,
I found the following code on the net -
http://mail-archives.apache.org/mod_mbox/httpd-python-cvs/200509.mbox/[EMAIL
PROTECTED]
def count(self):
-db = sqlite.connect(self.filename,
isolation_level=ISOLATION_LEVEL)
-try:
-try:
-cur