in reply to (SOLVED) How do I display only matches
Your regex /.{54}\\[a-zA-Z]\s[\r\n]/g (please use <code> ... </code> tags for all code, data and input/output; please see Writeup Formatting Tips) requires a [\r\n] to match, but chomp $row; will remove a newline from the end of each line (if present). Are you sure that a match is possible? Are you depending on a match against \r (carriage-return)? (Also, the /g modifier on the m// has no effect, although it does no harm.)
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do I display only matches
by tem2 (Novice) on Sep 24, 2019 at 03:12 UTC | |
by Marshall (Canon) on Sep 24, 2019 at 04:50 UTC | |
by tem2 (Novice) on Sep 24, 2019 at 07:04 UTC | |
by AnomalousMonk (Archbishop) on Sep 24, 2019 at 04:27 UTC | |
by BillKSmith (Monsignor) on Sep 24, 2019 at 20:22 UTC | |
by Marshall (Canon) on Sep 25, 2019 at 21:36 UTC | |
by BillKSmith (Monsignor) on Sep 26, 2019 at 14:34 UTC | |
| |
by Marshall (Canon) on Sep 24, 2019 at 05:39 UTC | |
by haukex (Archbishop) on Sep 25, 2019 at 17:20 UTC | |
by Marshall (Canon) on Sep 25, 2019 at 20:28 UTC | |
|