Hi PerlMonks, I'm struggling to develop a REGEX that will extract a date from a string such as "For the fiscal year ended December 31, 2015" That is, just extract "December 31, 2015" I am using the REGEX listed below, which is a weak start I know, so I apologize for the hassle. The word "ended" may also be "ending" . Sample text also appears below. Grateful for any ideas. Thank you!
m/\s*For\s*the\s*fiscal\s*year\s*end(.*)/i
<P STYLE="font: 10pt Times New Roman, Times, Serif; margin: 0; text-al +ign: center">For the fiscal year ended December 31, 2015</P> <P STYLE="font: 10pt Times New Roman, Times, Serif; margin: 0; text-al +ign: center">For the fiscal year ending December 31, 2015 <P STYLE="font: 10pt Times New Roman, Times, Serif; margin: 0; text-al +ign: center">For the fiscal year ending December 31, 2015
7 Mar 2017 Athanasius added code tags to display the otherwise-hidden <P> tags
In reply to REGEX for date by wrkrbeee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |