Page 1 of 1

delete special ANSI characters from ,254, to the end of line

Posted: Mon May 12, 2008 10:14 am
by filosy11
I need to clean some text from ,254, to the end of the line.

The problem is that special ANSI characters are writen

,ACHILLE,A, 43.983334, 12.111950,262,0,0,0,U,0,I,254,0,,<û
,ACQSPARA,A, 42.673050, 12.550000,1030,130000,0,0,U,0,I,254,0,,Q#|
,ACQUASP,O, 42.683617, 12.553333,984,0,0,0,U,0,I,254,0,,
,ACQUI TE,O, 44.676949, 8.502784,426,127000,150,15,U,0,I,254,0,,
,ACQUITER,A, 44.683048, 8.521116,429,0,0,0,U,0,I,254,0,,U

I have use regexp:
,254,0,,[[:cntrl:][:upper:][:space:][:print:][:punct:]]$
but not all line are selected

can you hel me?

Kam

Posted: Mon May 12, 2008 11:29 am
by ben_josephs
,254,0,,[[:cntrl:][:upper:][:space:][:print:][:punct:]]*$
or maybe just
,254,0,,.*

Posted: Mon May 12, 2008 4:33 pm
by filosy11
ben_josephs wrote:,254,0,,[[:cntrl:][:upper:][:space:][:print:][:punct:]]*$
or maybe just
,254,0,,.*
TKS
Kam