Having trouble creating .NET Regex pattern to capture multiple line text -


Sample text is as follows - it is part of a very large document that is being parsed (before each line Location is the end of it):

Process Information Primary Process: Laparoscopic Partial Upper Nephrectomy / Intraoperative Robot with Ultrasound Process: 5/4/2009 9:01:00 AM Process: 5 / 4/2009 3: 29: 00 PM

I get this string I want to draw "primary process" data from this, in this case, "Leptoshchopic partial upper nephrectomy / robotic with introvertrous ultrasound"

The following expression identifies the primary process location and manages to draw the first line of value, but not both rows (using the multi-line flag):

^ Primary Process: \ s * ([\ w \ s] * \ w) \ s * $

I can not understand any expression to get both lines It is possible for the value that this value is always 1 or 2 lines long. And it is also possible that we can rely on the presence of the "start the process:" string at the beginning of the line.

  new regepix (@ "primary process: \ s * (. *) \ S * Start the process ", Reggae opption.SynlinelineMatch (ARR) Group [1]  

Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -