in reply to Multiline Regex
use 5.010; for (split m/\n/, $str) { say if m/$regex/; }
If you don't want to capture the line, you have to extract the line first.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Multiline Regex
by ikegami (Patriarch) on Oct 09, 2008 at 09:53 UTC | |
by johngg (Canon) on Oct 09, 2008 at 10:43 UTC | |
by moritz (Cardinal) on Oct 09, 2008 at 09:56 UTC | |
by ikegami (Patriarch) on Oct 09, 2008 at 10:02 UTC | |
by moritz (Cardinal) on Oct 09, 2008 at 10:24 UTC | |
by ikegami (Patriarch) on Oct 09, 2008 at 10:44 UTC |