in reply to Re^3: How to extract a pattern in Perl regex?
in thread How to extract a pattern in Perl regex?
... caveat ... is to remember to use the /s modifier if the text you are extracting might contain \n.
Simpler still is to always use /s (along with /x and /m in a consistent /xms modifier tail) on every qr// m// s/// you write. Then the rule is simply "Dot matches all." Period.
Give a man a fish: <%-{-{-{-<
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to extract a pattern in Perl regex?
by hippo (Archbishop) on May 01, 2020 at 10:50 UTC | |
by AnomalousMonk (Archbishop) on May 01, 2020 at 11:52 UTC | |
by Your Mother (Archbishop) on May 01, 2020 at 15:47 UTC |