How to find lines with caracter not in selected column
Posted: Thu Sep 15, 2011 4:41 pm
Hi,
I have files with lines like
- AAAA may be anything (numeric, ajpha).
- All lines should have nomber 13 at same position but due to a wrong caracter before the number 13 column, some lines have the 13 one character drift on the right (as in lines 5 and 7 of my example)
My need is the regexp to find all lines where 13 is not at right position. I though about looking all lines where 13 is not at position (in that example : 19 = right, 20 = wrong)
Does anybody knows what regexp to use for that (or other idea). Thanks[/code]
I have files with lines like
Code: Select all
AAAAAAAAAAAAAAAAAA13AAAAAAA
AAAAAAAAAAAAAAAAAA13AAAAAAA
AAAAAAAAAAAAAAAAAA13AAAAAAA
AAAAAAAAAAAAAAAAAA13AAAAAAA
AAAAAAAAAAAA@AAAAAA13AAAAAAA
AAAAAAAAAAAAAAAAAA13AAAAAAA
AAAAAAAAA$AAAAAAAAA13AAAAAAA
AAAAAAAAAAAAAAAAAA13AAAAAAA
AAAAAAAAAAAAAAAAAA13AAAAAAA
AAAAAAAAAAAAAAAAAA13AAAAAAA
- All lines should have nomber 13 at same position but due to a wrong caracter before the number 13 column, some lines have the 13 one character drift on the right (as in lines 5 and 7 of my example)
My need is the regexp to find all lines where 13 is not at right position. I though about looking all lines where 13 is not at position (in that example : 19 = right, 20 = wrong)
Does anybody knows what regexp to use for that (or other idea). Thanks[/code]