Hello dear monks~
I have a very quick question. I am looking for accounting policies and I would like to take the following three sentences after following the match.
Here is my code.
my $test='deferred gross profit is blah blah blah.'; if($test=~m/(\bdeferred|unrealized)(.*)(\.)/) { print "matched $1 and the rest is $2"; }
This code captures only the first sentence. How can I modify the code so I capture the next three sentences?
Thank you for your time and consideration
In reply to Quick Regex quesiton by eversuhoshin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |