Click here to Skip to main content
15,902,784 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
word file contain following text:

Chapter 6: MAKING IT WORK

So how do we go about using the principles, techniques and tools described in the preceding chapters to set up quality management and/or risk management systems in an IVF lab? As we have already said, in truth these goals cannot be limited to the IVF lab, they must involve the entire IVF Centre, all its operations and all its personnel. However, for the purposes of this book, we can consider some specific areas that are pertinent to the lab that will illustrate how they are inherent to proper lab management.

A corollary of this is, therefore, that so long as the scientists follow the SOPs they ought to be indemnified against any adverse events (see also Chapter 6: “Protecting IVF Laboratory Staff From Unfair Litigation”). Even if a problem were to occur as a result of an oversight in a process defined in an SOP, the responsibility ultimately rests with the lead physician who signed off on the SOP, because by signing the SOP they agreed that it would be used in the treatment of their patients.



I use the regex
C#
@"Chapter\s+(\d+)\:\s([^\n]+)"


but it select both bolded content

I want fist bolded content. the first bolded content is the first line of the document how to write REGEX for this
Posted

1 solution

Try this:
C#
public static Regex regex = new Regex(
    "^Chapter\\s+(\\d+)\\:\\s([^\\n]+)",
    RegexOptions.Multiline
    | RegexOptions.Singleline
    | RegexOptions.CultureInvariant
    | RegexOptions.Compiled
    );

No guarantees, but it seems to work when I run it through Expresso.

BTW: If you want to play with regerexs, then get a copy of Expresso [^] - it's free, and it examines and generates Regular expressions. I use it a lot!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900