Because you are going through the file line-by-line (default behaviour when assuming a while loop around the program), just test for the 'Twist 2' string at the end of the line.perl -n -e 'if(/Twist 2$/){s/Twist 2//;print;} testresults'
In reply to RE: Pattern Matching Problem
by mrmick
in thread Pattern Matching Problem
by MrDoney
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |