minister has asked for the wisdom of the Perl Monks concerning the following question:
Edited by Corion: Moved to Seekers of Perl Wisdom
Hail Perl Monks:
I'm a Perl novice and could use some help with a regular expression job -- I strip out some data in a flat file and then convert it XML. The file looks like this:
...
URL=<http://www.1033edge.com/>
address=efmail@1033edge.com
username=efmail
password=testing
URL=<http://www.1033edge.com/>
address=efmail12@1033edge.com
username=efmail12
password=testing
URL=<http://www.1033edge.com/>
address=efmail2@1033edge.com
username=efmail2
password=testing
...
Ad naseum. If someone could help me out with a regular expression that would strip out everything but the email addresses (the stuff to the right of "address") and pipe it another text file, I will worship you forever. Forgive a novice programmer.
- Patrick (pnichols@uucom.com)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Perl Fool needs help
by tye (Sage) on Aug 14, 2000 at 19:58 UTC | |
|
RE: Perl Fool needs help
by turnstep (Parson) on Aug 14, 2000 at 20:07 UTC | |
|
RE: Perl Fool needs help
by qi3ber (Scribe) on Aug 14, 2000 at 21:52 UTC | |
|
RE: Perl Fool needs help
by wardk (Deacon) on Aug 15, 2000 at 02:01 UTC | |
|
RE: Perl Fool needs help
by Anonymous Monk on Aug 16, 2000 at 00:57 UTC | |
by Anonymous Monk on Aug 16, 2000 at 01:02 UTC | |
|
RE: Perl Fool needs help
by ybiC (Prior) on Aug 15, 2000 at 15:19 UTC |