62,046
社区成员
发帖
与我相关
我的任务
分享
//这样?
string str = @"aaaaa
#356823032172848##0#0000#AUT#2#45262726#12641.0418,E,4544.3078,N,002.76,278#180411#033704##
#356823032172848##0#0000#AUT#2#V#12641.1862,E,1.1861,E,4544.3011,N,000.23,62#190411#015217##
bbb";
Regex reg = new Regex(@"(?<=#)\d{15}##((?!##).)*(?=##)");
foreach (Match m in reg.Matches(str))
{
Response.Write(m.Value + "<br/>");
}
/*
356823032172848##0#0000#AUT#2#45262726#12641.0418,E,4544.3078,N,002.76,278#180411#033704
356823032172848##0#0000#AUT#2#V#12641.1862,E,1.1861,E,4544.3011,N,000.23,62#190411#015217
*/