尝试这样的事情:
Description:([^
以下是如何使用它的示例:
using System;
using System.Text.RegularExpressions;
class Example
{
static void Main()
{
String str = @"Job Title: Test text
JobId: 56565-116503
City: San Diego
State: CA
Zip Code: 92108
Description:
We are recruiting for a Controller to oversee all accounting and finance for a growing manufacturing company. We are looking for someone who is hands on full cycle accounting.
";
Regex expression = new Regex(@"Description:([^
RegexOptions.Compiled |
RegexOptions.CultureInvariant |
RegexOptions.IgnoreCase);
Match match = expression.Match(str);
if (match.Success)
Console.WriteLine(match.Groups[1].Value.Trim());
}
}