Extract line numbers from translate filter