stoopid stoopid peteches. had the sed command inside the regex all along :(