467,169 Members | 996 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,169 developers. It's quick & easy.

Module re, extract on string match

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)

<Extract /folder3/folder4/folder5/file>

Thanks,

Sriram
Aug 4 '08 #1
  • viewed: 857
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Edvard Majakari | last post: by
12 posts views Thread by lothar | last post: by
2 posts views Thread by Lydia Shawn | last post: by
3 posts views Thread by David Moore | last post: by
4 posts views Thread by Ciaran | last post: by
1 post views Thread by Alberto Sartori | last post: by
reply views Thread by Timothy Grant | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.