比如北斗gps 数据
$GNGGA,081859.000,2235.635355,N,11418.037662,E,1,12,1.214,10.382,M,0,M,,*52
$GNGLL,2235.635355,N,11418.037662,E,081859.000,A,A*44
$GNGSA,A,3,20,24,5,15,21,18,13,29,,,,,2.720,1.214,2.434*1A
$GNGSA,A,3,161,164,166,167,,,,,,,,,2.720,1.214,2.434*28
$GPGSV,3,1,11,5,17,93,24,12,4,156,,13,21,38,25,14,7,242,*4A
$GPGSV,3,2,11,15,50,14,32,18,30,317,26,20,54,47,31,21,49,309,34*77
$GPGSV,3,3,11,24,64,149,37,29,21,216,29,10,5,,31*45
$BDGSV,3,1,10,161,49,129,35,162,43,240,30,163,61,189,,164,32,111,34*6C
$BDGSV,3,2,10,165,23,254,,166,53,9,31,167,44,164,31,168,23,189,*6B
$BDGSV,3,3,10,169,47,330,,170,27,185,*6B
$GNRMC,081900.000,A,2235.635375,N,11418.037593,E,0.000,69.944,181115,,E,A*0F
$GNGGA,081900.000,2235.635375,N,11418.037593,E,1,12,1.214,10.404,M,0,M,,*59
$GNGLL,2235.635375,N,11418.037593,E,081900.000,A,A*46
$GNGSA,A,3,20,24,5,15,21,18,13,29,,,,,2.720,1.214,2.433*1D
$GNGSA,A,3,161,164,166,167,,,,,,,,,2.720,1.214,2.433*2F
$GPGSV,3,1,11,5,17,93,23,12,4,156,,13,21,38,24,14,7,242,*4C
$GPGSV,3,2,11,15,50,14,31,18,30,317,26,20,54,47,31,21,49,309,34*74
$GPGSV,3,3,11,24,64,149,37,29,21,216,29,10,5,,31*45
$BDGSV,3,1,10,161,49,129,34,162,43,240,30,163,61,189,,164,32,111,35*6C
$BDGSV,3,2,10,165,23,254,,166,53,9,31,167,44,164,31,168,23,189,*6B
$BDGSV,3,3,10,169,47,330,,170,28,185,*64
每行开头很多一样,但是后面很多不一样,怎么把这些带GNGLL的删除呢?
UltraEdit 果然没让人失望
方法如下:
①、在[替换]对话框的[高级]中:[正则表达式引擎]选UltraEdit。
查找:
%*GNGLL*^p
替换为:(空)
注:^p 是 DOS 文件类型的换行符.
如果是 Unix 类型文件,则用 ^n.