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


in reply to capture value from two patterns

my ($id) = grep defined, (m!/key/(\d+)|/(\d+)-\d+!);