fork download
  1. import re
  2.  
  3. example = "OPERATOR: Good day, ladies and gentlemen, and welcome to the first-quarter 2012\nAgilent Technologies earnings conference call. My name is Keith, and I will be\nyour operator for today. At this time, all participants are in a listen-only\nmode. Later on, we will have a question and answer session. (Operator\nInstructions) As a reminder, today's conference is being recorded for replay\npurposes.\n\nAnd I would now like to turn the conference over to your host for today, Ms.\nAlicia Rodriguez, Vice President of Investor Relations. Please go ahead, ma'am.\n\nALICIA RODRIGUEZ, VP - IR, AGILENT TECHNOLOGIES INC: Thank you, Keith, and\nwelcome, everyone, to Agilent's first quarter conference call for fiscal-year\n2012. With me are Agilent's President and CEO, Bill Sullivan, as well as Senior\nVice President and CFO, Didier Hirsch. Joining in the Q&A after Didier's\ncomments will be Agilent's Chief Operating Officer, Ron Nersesian, and the\nPresidents of our Electronic Measurement, Life Sciences, and Chemical Analysis\nGroups -- Guy Sene, Nick Roelofs, and Mike McMullen.\n\nYou can find the press release and information to supplement today's discussion\non our website at www.investor.agilent.com. While there, please click on the\nlink for financial results, where you will find revenue breakouts and historical\nfinancials for Agilent's operations. We will also post a copy of the prepared\nremarks following this call. For any non-GAAP financial measures, you will find\nthe most directly comparable GAAP financial metrics and reconciliations on our\nwebsite.\n\nWe will make forward-looking statements about the financial performance of the\nCompany. These statements are subject to risks and uncertainties, and are only\nvalid as of today. The Company assumes no obligation to update them. Please look\nat the Company's recent SEC filings for a more complete picture of our risks and\nother factors.\n\nBefore turning the call over to Bill, I would like to remind you that Agilent\nwill host its annual analysts meeting in New York City on March 8. Details about\nthe meeting and webcast will be available on the Agilent investor relations\nwebsite two weeks prior.\n\nAnd now, I'd like to turn the call over to Bill.\n\nBILL SULLIVAN, PRESIDENT AND CEO, AGILENT TECHNOLOGIES INC: Thanks, Alicia, and\nhello, everyone. Agilent's Q1 orders of $1.62 billion were flat versus last\nyear. Q1 revenues of $1.64 billion were up 7% year-over-year. Non-GAAP EPS was\n$0.69 per share, and operating margin was 19%."
  4. r = re.compile(r"^([^a-z\n:]+):(.*?)(?=\n[^a-z\n:]+:|\Z)", re.MULTILINE | re.DOTALL)
  5. print(r.findall(example))
Success #stdin #stdout 0.02s 27752KB
stdin
Standard input is empty
stdout
[('OPERATOR', " Good day, ladies and gentlemen, and welcome to the first-quarter 2012\nAgilent Technologies earnings conference call. My name is Keith, and I will be\nyour operator for today. At this time, all participants are in a listen-only\nmode. Later on, we will have a question and answer session. (Operator\nInstructions) As a reminder, today's conference is being recorded for replay\npurposes.\n\nAnd I would now like to turn the conference over to your host for today, Ms.\nAlicia Rodriguez, Vice President of Investor Relations. Please go ahead, ma'am.\n"), ('ALICIA RODRIGUEZ, VP - IR, AGILENT TECHNOLOGIES INC', " Thank you, Keith, and\nwelcome, everyone, to Agilent's first quarter conference call for fiscal-year\n2012. With me are Agilent's President and CEO, Bill Sullivan, as well as Senior\nVice President and CFO, Didier Hirsch. Joining in the Q&A after Didier's\ncomments will be Agilent's Chief Operating Officer, Ron Nersesian, and the\nPresidents of our Electronic Measurement, Life Sciences, and Chemical Analysis\nGroups -- Guy Sene, Nick Roelofs, and Mike McMullen.\n\nYou can find the press release and information to supplement today's discussion\non our website at www.investor.agilent.com. While there, please click on the\nlink for financial results, where you will find revenue breakouts and historical\nfinancials for Agilent's operations. We will also post a copy of the prepared\nremarks following this call. For any non-GAAP financial measures, you will find\nthe most directly comparable GAAP financial metrics and reconciliations on our\nwebsite.\n\nWe will make forward-looking statements about the financial performance of the\nCompany. These statements are subject to risks and uncertainties, and are only\nvalid as of today. The Company assumes no obligation to update them. Please look\nat the Company's recent SEC filings for a more complete picture of our risks and\nother factors.\n\nBefore turning the call over to Bill, I would like to remind you that Agilent\nwill host its annual analysts meeting in New York City on March 8. Details about\nthe meeting and webcast will be available on the Agilent investor relations\nwebsite two weeks prior.\n\nAnd now, I'd like to turn the call over to Bill.\n"), ('BILL SULLIVAN, PRESIDENT AND CEO, AGILENT TECHNOLOGIES INC', " Thanks, Alicia, and\nhello, everyone. Agilent's Q1 orders of $1.62 billion were flat versus last\nyear. Q1 revenues of $1.64 billion were up 7% year-over-year. Non-GAAP EPS was\n$0.69 per share, and operating margin was 19%.")]