in reply to Re^3: Search and Copy
in thread Search and Copy
open (OUTPUT, ">Results.txt") open( INFILE, "Textfile.TXT" ) while (<INFILE>) { if ($ARG =~ /(Something.{0,250})/ ) { print OUTPUT $ARG ; } } close (OUTPUT);
The "regexp" suggested is not working.
Thoughts?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Search and Copy
by choroba (Cardinal) on Nov 24, 2012 at 21:55 UTC |