Re: Module re, extract on string match

2008-08-04 Thread Timothy Grant
On Mon, Aug 4, 2008 at 4:54 PM, Sriram Rajan <[EMAIL PROTECTED]> wrote: > I am wondering if I can use re.search to extract from a particular > location in a string. > Example: > string1='/Users/sriram/folder1/folder2/folder3/folder4/folder5/file' > re.search ('folder3,string1) > > > > Thanks, >

Module re, extract on string match

2008-08-04 Thread Sriram Rajan
I am wondering if I can use re.search to extract from a particular location in a string. Example: string1='/Users/sriram/folder1/folder2/folder3/folder4/folder5/file' re.search ('folder3,string1) Thanks, Sriram -- http://mail.python.org/mailman/listinfo/python-list