in reply to pattern match in text file
In general, the script should look something like this:
Or, if you don't need the whole line, just parts of it,while (<ARGV>) { print if /some_regexp/; }
To see how to construct the regular expressions, look at perldoc perlre.print "$1 $2 (..etc)\n" if /some regexp with captures/;
|
|---|