Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello PerlMonks who are always smarter than me. I'm trying to write a regex to match "---" followed by a new line to parse a number of files and return some data with no success. Here's the code that I have that's not working , any assistance is greatly appreciated.
@matches7 = ($text =~ /(.{0,0})\K(---\s*)(.{0,200})/gisx);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex to match "---" followed by new line
by haukex (Archbishop) on Jun 29, 2017 at 07:27 UTC | |
|
Re: regex to match "---" followed by new line
by 1nickt (Canon) on Jun 29, 2017 at 08:07 UTC | |
|