gcazian has asked for the wisdom of the Perl Monks concerning the following question:

Hi. Sorry, I'm a bit of a Perl novice, so forgive me if this question seems silly. I have an output file with a very long string. Here is a sample of the file:
<who><presence from='username1@myserver.mydomain.com/Exodus' to='user +name2@myserver.mydomain.com'>
Basically, I want to use regular expressions to extract any of the addresses that occur in between <presence from=' and the following ' character (so in the example above, I would like to extract "username1@myserver.mydomain.com/Exodus"). Anyone willing to point me in the right direction? Thanks.

Replies are listed 'Best First'.
Re: regular expression from input file
by pzbagel (Chaplain) on Jan 16, 2004 at 02:16 UTC
Re: regular expression from input file
by borisz (Canon) on Jan 16, 2004 at 02:18 UTC