sub("^Fiscal year end: ([A-Za-z]+\\s*\\d+);.*","\\1", "Fiscal year end: March 31; reporting period for")
Standard input is empty
[1] "March 31"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!