a='0 b='001 c='110 d='1 #### while<> {chomp; if(~/(.*?)=\'[0|1]/) #if(~/(.*?)=\'[0-1]/) #if(~/(.*?)=\'[01]/) { print $1; } }