in reply to pattern matching

I'm making a wild assumption about your data, namely that if a line starts with 0010 0010, it will always be in the format you are describing, and that it is safe to not explicitly search for both // sets.

while (<>) { if (/^0010 0010/) { print $1 if m!([^/]+$)!; } }