정규식을 이용하여 빈 라인만 삭제하는 식 좀 부탁드리겠습니다
예를 들어 아래와 같이 문장들이 많이 있는데
여기서 빈 라인만 삭제하여 글씨가 있는 라인들로 깨끗하게
뽑아내고 싶습니다.
바뀌기전
--------
Think about what happened to your father…
It’s time we stopped this war,
and acted liked civilized people
- By the way, where’s Eun-ja?
- Where is she?
바뀐후
---------
Think about what happened to your father…
It’s time we stopped this war,
and acted liked civilized people
- By the way, where’s Eun-ja?
- Where is she?