July 14, 2011 at 2:38 am #9476
CrashNBurn
Member
My Test file:
teststring
teststring
teststring
teststring
ABCDE: .abc3;.s32
ABCDE: .abc3;.s32
ABCDE: .abc3;.s32
ABCDE: .abc3;.s32
This regex,
: +([[:alnum:];.]+)n
Matches the first 3 ABCDE lines.
This regex,
: +([[:alnum:];.]+)$
Matches all 4.
And with this file:
teststring
teststring
teststring
teststring
ABCDE: .abc3;.s32
ABCDE: .abc3;.s32
ABCDE: .abc3;.s32
ABCDE: .abc3;.s32
This regex:
:[ ]+([[:alnum:];.])+$
Matches all 4 ABCDE’s.
And with this file:
teststring
teststring
teststring
teststring
ABCDE: .abc3;.s32
ABCDE: .abc3;.s32
ABCDE: .abc3;.s32
ABCDE: .abc3;.s32
This regex:
:[ ]+([[:alnum:];.])+n
Matches all 4 ABCDE’s.