title: How to extract whole line text using regex?
body: <p>i have a following piece of text i need a regular expression which give me the complete text of that line which starts from <code>dhcp pool</code> For e.g. first line starts from dhcp pool so i need complete text of it.Can anyone tell me how to achieve this ,it would be very helpful to me.</p>
  
  <pre><code>dhcp pool IT-test
  IP address is 12.0.0.0,Network mask is 255.0.0.0
  DHCP client node type : 0
  Lease  day:1, hour: 0, minute :0
  dhcp pool QA-Test
  IP address is 192.168.100.0,Network mask is 255.255.255.0
  DHCP client node type : 0
  Lease  day:1, hour: 0, minute :0
  dhcp pool firmware-test
  IP address is 11.0.0.0,Network mask is 255.0.0.0
  DHCP client node type : 0
  Lease  day:1, hour: 0, minute :0
  </code></pre>
  
  <p>2nd piece of code:</p>
  
  <pre><code> string pattern = "/^dhcp pool.*/g";
              Console.WriteLine(pattern);
              MatchCollection matches = Regex.Matches(_str, pattern);
  
              foreach(Match match in matches)
              {
                  Console.WriteLine("+++++++++++++dhcp pool is ++++++++++++++" + match.Groups[1].Value);
                  DHCPoolName = match.Groups[1].Value;
              }
  </code></pre>
  
  <p>XAML code:</p>
  
  <pre><code>&lt;ComboBox
              Grid.Column="1"
              Grid.Row="1"
              Margin="0,4"
              ItemsSource="{Binding DHCPoolName}"&gt;              
          &lt;/ComboBox&gt;
  </code></pre>