using System; using System.Text.RegularExpressions;class Program { static void Main() { string input = @"姓名:比尔盖茨 性别:男 身份证:113440196003112813 个人简介:Microsoft"; Regex r = new Regex("(?<=:).*"); foreach (Match m in r.Matches(input)) { Console.WriteLine(m.Value); } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Xml.Linq;namespace ConsoleCSharp { class Program { static void Main(string[] args) { string str = @"姓名:比尔盖茨 性别:男 身份证:113440196003112813 个人简介:Microsoft"; Regex re = new Regex("(?<=:).*"); MatchCollection mc = re.Matches(str); foreach (Match m in mc) { Console.WriteLine(m.Value); } } } }
using System; using System.Text.RegularExpressions;class Program { static void Main() { string input = @"
using System.Text.RegularExpressions;class Program
{
static void Main()
{
string input = @"姓名:比尔盖茨
性别:男
身份证:113440196003112813
个人简介:Microsoft";
Regex r = new Regex("(?<=:).*");
foreach (Match m in r.Matches(input))
{
Console.WriteLine(m.Value);
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Xml.Linq;namespace ConsoleCSharp
{
class Program
{
static void Main(string[] args)
{
string str = @"姓名:比尔盖茨
性别:男
身份证:113440196003112813
个人简介:Microsoft";
Regex re = new Regex("(?<=:).*");
MatchCollection mc = re.Matches(str);
foreach (Match m in mc)
{
Console.WriteLine(m.Value);
} }
}
}
using System.Text.RegularExpressions;class Program
{
static void Main()
{
string input = @"