in reply to How to parse this information out?
First split the text on either two or more blanks, or a line feed. That isolates the candidate phrases mixed with other text fragments. Then select three-word-phrases by keeping only those fragments that contain exactly two blanks. Finally, select for the word "NOTICE". Put together:
Annoprint "$_\n" for grep /\bNOTICE\b/, grep tr/ // == 2, split / {2,}|\n/, $text;
|
|---|