Extracting data from a text file to use in a python script?

Posted by Rob on Stack Overflow See other posts from Stack Overflow or by Rob
Published on 2010-05-16T18:50:25Z Indexed on 2010/05/16 19:00 UTC
Read the original article Hit count: 133

Filed under:
|

Basically, I have a file like this:

Url/Host:   www.example.com
Login:     user
Password:   password

How can I use RegEx to separate the details to place them into variables?

Sorry if this is a terrible question, I can just never grasp RegEx. So another question would be, can you provide the RegEx, but kind of explain what each part of it is for?

© Stack Overflow or respective owner

Related posts about python

Related posts about regex