redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

loop over files in a directory



 
Post new topic   Reply to topic    Web Design Forums -> Python programming forum
View previous topic :: View next topic  
Author Message
Lusis Backwood JR



Joined: 26 May 2006
Posts: 87
Location: United States
How do I loop over files in a directory?
  Reply with quote


WarChild



Joined: 24 Feb 2006
Posts: 46
Recursively or not?
  Reply with quote
Gladis



Joined: 24 May 2006
Posts: 108
os.listdir or os.walk
  Reply with quote
Lusis Backwood JR



Joined: 26 May 2006
Posts: 87
Location: United States
Aha
If I have a string, like rubbishGOODblah and I want to extract just the GOOD with a regular expression, can I do it in one line?
Ie string = re.compile('(GOOD)').match ?
  Reply with quote
BigDaddy



Joined: 26 May 2006
Posts: 147
If you know the exact string you want to extract, just use that ...
String = 'GOOD'
Or am I being too simplistic
  Reply with quote
Guest





Lusis Backwood JR wrote:
Aha
If I have a string, like rubbishGOODblah and I want to extract just the GOOD with a regular expression, can I do it in one line?
Ie string = re.compile('(GOOD)').match ?


match what? You have to show where to look for the info you want to match.
  Reply with quote
Page 1 of 1
Post new topic   Reply to topic    Web Design Forums -> Python programming forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group