in reply to Re^3: Matching range of text with another string in between
in thread Matching range of text with another string in between
Yes, CAS* always starts at the beginning of the line, and those lines do not have any trailing blanks. I want to make sure that the matching entries start with LX* and end with CAS*. I could be wrong but it almost looks like the code above is matching starting with CAS* instead.perl -ne "BEGIN{ $/ = qq(\r\nCAS*\r\n) } /00003/ and print" "filename"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Matching range of text with another string in between
by Anonymous Monk on Apr 22, 2016 at 18:41 UTC | |
|
Re^5: Matching range of text with another string in between
by Anonymous Monk on Apr 22, 2016 at 18:46 UTC | |
by periodicalcoder (Novice) on Apr 22, 2016 at 19:18 UTC | |
by Anonymous Monk on Apr 22, 2016 at 19:28 UTC | |
by Anonymous Monk on Apr 22, 2016 at 19:52 UTC | |
by periodicalcoder (Novice) on Apr 22, 2016 at 20:03 UTC |