in reply to Re^4: REGEX for date
in thread REGEX for date
Are you after this line?
That looks nothing like your example, but is the only fiscal i find in my test list of @aonly i used.FISCAL YEAR END: 1231
and remember when i said i was concerned with qr/\'\n'/, im even more concerned now, i suggest replacing
withfor my $line (split qr/\'\n'/, $partial) {
That splits on pure line endings and doesnt require a quote before and after the \n. it makes adding a line likefor my $line (split qr/\n/, $partial) {
much more manageable. as far as i can see it doesnt affect your code, except it may make the m in /m unnecessaryif($line=~m/\s*fiscal/mi ) {print $line."\n";}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: REGEX for date
by wrkrbeee (Scribe) on Mar 06, 2017 at 21:31 UTC | |
by huck (Prior) on Mar 06, 2017 at 21:41 UTC | |
|
Re^6: REGEX for date
by wrkrbeee (Scribe) on Mar 06, 2017 at 21:35 UTC |