in reply to minimal greed, revisited
If reordering the records is within your power, put the user
number at the top of the record.
Then you could simply do
---
Crulx
crulx@iaxs.net
Or something like that... I'm way to tired to get it right. *grin*$source =~ m/.*(user: 2\s*name: .* address: .*?\n)/s;
---
Crulx
crulx@iaxs.net
In Section
Seekers of Perl Wisdom