#!/usr/bin/perl -w open IN,"<","file" or die "error opening file: $!"; while(){ if(/"\(\w+\)"\/){ print "$1\n"; }}