in reply to Regex Help
and I thought for sure, this would work, but I still can't get it to match :-(perl -p -e "s/\r+//" file.txt > newfile.txt
L~R,while (<FILE>){ /ATDT\d+\s+BUSY/ ? print : print "Did not match '$_'\n"; #print if /ATDT\d+\s+BUSY/; #print if /ATDT\d+.*BUSY/s; #print; }
I don't see where I'm suppose to specify the input file?The system cannot find the file specified.
Did not match 'Output: Got ."ATDT1234567' ' Did not match 'BUSY
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex Help
by Abigail-II (Bishop) on Jun 07, 2004 at 20:47 UTC | |
|
Re^2: Regex Help
by eXile (Priest) on Jun 08, 2004 at 00:28 UTC |