http://qs321.pair.com?node_id=3565


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
$source =~ m/.*(user: 2\s*name: .* address: .*?\n)/s;
Or something like that... I'm way to tired to get it right. *grin*
---
Crulx
crulx@iaxs.net