Hi,
This also seems to work , don't know about speed:
Paul
Edit: not a viable solution probably, because "[ ]" is a reserved format in fnmatch. Looking for a workaround.
This also seems to work , don't know about speed:
import fnmatch with open('test.txt', 'r') as br: for idx, line in enumerate(br): if fnmatch.fnmatch(line,'[*\n'): print(line)My 2 cts,
Paul
Edit: not a viable solution probably, because "[ ]" is a reserved format in fnmatch. Looking for a workaround.
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.