in reply to Re^3: Perl regex
in thread Perl regex
perl : load perl -nE : $1 stands for : ([^\(]+) for example Metan1_4283 in Metan1_4283(Metac1 +_3189) $2 stands for : \n((.*)\) for example (Metac1_3189) in Metan1_4283(Met +ac1_3189) $1 ne $2 : Means if first pattern does not match second pattern. ++ $seen{$2} : < 2 : less than 2. say "$1 : $2"' : prints out into two columns. raw_data.txt : path to file goes here.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Perl regex
by 1nickt (Canon) on Jul 12, 2017 at 16:19 UTC |