Re: Pattern Matching Given # of Characters and no String Input; use RegularExpressions?

2005-04-22 Thread Synonymous
shutil.move(b,aa+"/"+f) else: os.mkdir(aa+"/"+f) #os.mkdir(f) shutil.move(b,aa+"/"+f) else: =3 x = x + 1 y = y - 1 --- End Code --- [EMAIL PROTECTED] (Synony

Re: Pattern Matching Given # of Characters and no String Input; use RegularExpressions?

2005-04-20 Thread Synonymous
tiissa <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Synonymous wrote: > > tiissa <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > > > >>tiissa wrote: > >> > >>>If you know the number of

Re: Pattern Matching Given # of Characters and no String Input; use RegularExpressions?

2005-04-20 Thread Synonymous
John Machin <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > On 17 Apr 2005 18:12:19 -0700, [EMAIL PROTECTED] (Synonymous) > wrote: > > > > >I will look for a Left$(str) function that looks at the first X > >characters for python :)). >

Re: Pattern Matching Given # of Characters and no String Input; use RegularExpressions?

2005-04-17 Thread Synonymous
ys is when comparing a list, it looks at the 'Count' left number of characters in the cell and compares it to the row cell above's 'Count' left number of characters and then does the task (i.e. makes a directory, moves the files) if they are equal. I will look for a Left$(str) function that looks at the first X characters for python :)). Thank you for your help! Synonymous -- http://mail.python.org/mailman/listinfo/python-list

Pattern Matching Given # of Characters and no String Input; use RegularExpressions?

2005-04-17 Thread Synonymous
Hello, Can regular expressions compare file names to one another. It seems RE can only compare with input i give it, while I want it to compare amongst itself and give me matches if the first x characters are similiar. For example: cccat cccap cccan dddfa dddfg dddfz Would result in the 'ddd' a